From a3024812ba5567e57bae45472158ac36d87dac67 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 11 Apr 2022 09:44:32 -0300 Subject: [PATCH] Update entrypoint.sh --- .docker/app/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/app/entrypoint.sh b/.docker/app/entrypoint.sh index 765d0a141d..9e4ba9828a 100644 --- a/.docker/app/entrypoint.sh +++ b/.docker/app/entrypoint.sh @@ -1,12 +1,12 @@ #!/bin/bash . `pwd`/../.env -php /var/www/scripts/wait-for-db.php if [ ! -d ".git" ]; then git clone --progress --single-branch --depth 1 --branch "${VERSION_NEXTCLOUD}" --recurse-submodules -j 4 https://github.com/nextcloud/server /tmp/nextcloud rsync -r /tmp/nextcloud/ . mkdir data chown -R www-data:www-data . fi +php /var/www/scripts/wait-for-db.php if [[ ! -f "config/config.php" && ${AUTOINSTALL} -eq 1 ]]; then if [[ ! -z ${POSTGRES_HOST} && ! -z ${POSTGRES_DB} && ! -z ${POSTGRES_USER} && ! -z ${POSTGRES_PASSWORD} ]]; then runuser -u www-data -- php occ maintenance:install --verbose --database=pgsql --database-name=${POSTGRES_DB} --database-host=${POSTGRES_HOST} --database-port= --database-user=${POSTGRES_USER} --database-pass=${POSTGRES_PASSWORD} --admin-user=${NEXTCLOUD_ADMIN_USER} --admin-pass=${NEXTCLOUD_ADMIN_PASSWORD} --admin-email=${NEXTCLOUD_ADMIN_EMAIL}