set working dir
This commit is contained in:
parent
f6c9be27f1
commit
79e2f96c2a
@ -1,11 +1,11 @@
|
|||||||
#!/usr/bin/with-contenv sh
|
#!/usr/bin/with-contenv sh
|
||||||
set -ex
|
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
|
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
|
if [ $? -ne 1 ]; then
|
||||||
cd /usr/share/webapps/nextcloud
|
|
||||||
|
|
||||||
s6-setuidgid nginx ./occ maintenance:install \
|
s6-setuidgid nginx ./occ maintenance:install \
|
||||||
--database=pgsql \
|
--database=pgsql \
|
||||||
--database-host=$DB_HOST \
|
--database-host=$DB_HOST \
|
||||||
|
Loading…
Reference in New Issue
Block a user