From 79e2f96c2a6fc82b0ef80589ecf2883b4b66cf62 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 30 Jan 2018 08:55:27 +0100 Subject: [PATCH] set working dir --- rootfs/etc/cont-init.d/00-nextcloud | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/cont-init.d/00-nextcloud b/rootfs/etc/cont-init.d/00-nextcloud index fef03ed..49161ff 100644 --- a/rootfs/etc/cont-init.d/00-nextcloud +++ b/rootfs/etc/cont-init.d/00-nextcloud @@ -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 \