From 95cce0867f1f1967e62b720eb24d035bf6ae24c5 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 22 Jul 2024 15:33:05 -0300 Subject: [PATCH] chore: ignore warning when create folder Signed-off-by: Vitor Mattos --- .docker/scripts/entrypoint.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.docker/scripts/entrypoint.sh b/.docker/scripts/entrypoint.sh index 1e155b9..ef01a36 100644 --- a/.docker/scripts/entrypoint.sh +++ b/.docker/scripts/entrypoint.sh @@ -12,20 +12,20 @@ if [ ! -d ".git" ]; then git fetch --depth=1 origin "${VERSION_NEXTCLOUD}" git checkout "${VERSION_NEXTCLOUD}" git submodule update --init --recursive - mkdir data - mkdir apps-writable - if [ ! -d "apps-extra" ]; then - mkdir apps-extra - fi - chown -R www-data:www-data . fi +mkdir -p data +mkdir -p apps-writable +mkdir -p config +mkdir -p apps-extra + # Wait for database php /var/www/scripts/wait-for-db.php # Set configurations, if needed if [[ ! -f "config/config.php" && ${AUTOINSTALL} -eq 1 ]]; then echo "⌛️ Starting installation ..." + chown -R www-data:www-data . if [[ ${DB_HOST} == 'mysql' ]]; then occ maintenance:install --verbose --database="${DB_HOST}" --database-name="${MYSQL_DATABASE}" --database-host="${DB_HOST}" --database-port= --database-user="${MYSQL_USER}" --database-pass="${MYSQL_PASSWORD}" --admin-user="${NEXTCLOUD_ADMIN_USER}" --admin-pass="${NEXTCLOUD_ADMIN_PASSWORD}" --admin-email="${NEXTCLOUD_ADMIN_EMAIL}" elif [[ "${DB_HOST}" == 'pgsql' ]]; then