correct var names

This commit is contained in:
Sebastian Hugentobler 2017-10-06 11:57:54 +02:00
parent 2bb38f8150
commit 3c3ae2c3b2

View File

@ -1,8 +1,8 @@
#!/usr/bin/with-contenv sh #!/usr/bin/with-contenv sh
PGPASSWORD=$DBPASSWORD psql -h $DBHOST -U $DBUSER -d $DBNAME -c "SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'session')" | grep f PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -U $DB_USER -d $DB_NAME -c "SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'session')" | grep f
if [ $? -ne 1 ]; then if [ $? -ne 1 ]; then
PGPASSWORD=$DBPASSWORD psql -h $DBHOST -U $DBUSER -d $DBNAME -f /var/lib/roundcube/SQL/postgres.initial.sql PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -U $DB_USER -d $DB_NAME -f /var/lib/roundcube/SQL/postgres.initial.sql
fi fi