set working dir

This commit is contained in:
Sebastian Hugentobler 2018-01-30 08:55:27 +01:00
parent f6c9be27f1
commit 79e2f96c2a

View File

@ -1,11 +1,11 @@
#!/usr/bin/with-contenv sh
set -ex
cd /usr/share/webapps/nextcloud
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 = '${DB_TABLE_PREFIX}appconfig')" | grep f
if [ $? -ne 1 ]; then
cd /usr/share/webapps/nextcloud
s6-setuidgid nginx ./occ maintenance:install \
--database=pgsql \
--database-host=$DB_HOST \