Skip to content

Commit d27a9a4

Browse files
authored
Merge pull request #79 from LibreCodeCoop/chore/ignore-warning-when-create-folder
chore: ignore warning when create folder
2 parents e943dd0 + 95cce08 commit d27a9a4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.docker/scripts/entrypoint.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ if [ ! -d ".git" ]; then
1212
git fetch --depth=1 origin "${VERSION_NEXTCLOUD}"
1313
git checkout "${VERSION_NEXTCLOUD}"
1414
git submodule update --init --recursive
15-
mkdir data
16-
mkdir apps-writable
17-
if [ ! -d "apps-extra" ]; then
18-
mkdir apps-extra
19-
fi
20-
chown -R www-data:www-data .
2115
fi
2216

17+
mkdir -p data
18+
mkdir -p apps-writable
19+
mkdir -p config
20+
mkdir -p apps-extra
21+
2322
# Wait for database
2423
php /var/www/scripts/wait-for-db.php
2524

2625
# Set configurations, if needed
2726
if [[ ! -f "config/config.php" && ${AUTOINSTALL} -eq 1 ]]; then
2827
echo "⌛️ Starting installation ..."
28+
chown -R www-data:www-data .
2929
if [[ ${DB_HOST} == 'mysql' ]]; then
3030
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}"
3131
elif [[ "${DB_HOST}" == 'pgsql' ]]; then

0 commit comments

Comments
 (0)