2017-09-15 15:24:59 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2017-09-23 09:04:11 +02:00
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
export LANG=C.UTF-8
|
|
|
|
|
|
|
|
if [ $(id -u) -eq 0 ]
|
|
|
|
then
|
|
|
|
# required so that the postgres user can create files
|
|
|
|
chmod 777 .
|
|
|
|
chmod 777 features
|
|
|
|
SU='su postgres -p -c'
|
|
|
|
else
|
|
|
|
SU='bash -c'
|
|
|
|
fi
|
2017-09-15 15:24:59 +02:00
|
|
|
|
2017-09-29 16:27:16 +02:00
|
|
|
for PG_VERSION in /usr/lib/postgresql/*; do
|
2017-09-29 17:50:33 +02:00
|
|
|
$SU "PATH=/usr/lib/postgresql/$(basename ${PG_VERSION})/bin:$PATH behave"
|
2017-09-29 16:27:16 +02:00
|
|
|
done
|