chown improvement and additional logging (#65)

Co-authored-by: marty <marty@uberflieger.media>
pull/72/head
Martin McFly 2020-11-18 23:55:22 +01:00 committed by GitHub
parent 5f902573b9
commit 9bb72c451f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -99,7 +99,7 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ]; then
echo "[INFO] No installed extensions" echo "[INFO] No installed extensions"
fi fi
echo "[INFO] Init done, launch flarum..." echo "[INFO] Init done"
else else
# if no installation was performed before # if no installation was performed before
echo "[INFO] First launch, installation..." echo "[INFO] First launch, installation..."
@ -130,7 +130,9 @@ else
fi fi
# Set permissions for /flarum folder # Set permissions for /flarum folder
find /flarum ! -user "${UID}" -exec chown "${UID}:${GID}" {} \; echo "[INFO] Setting folder permissions"
find /flarum ! -group "${GID}" -exec chown "${UID}:${GID}" {} \; find /flarum ! -user "${UID}" -exec chown "${UID}:${GID}" {} \+
find /flarum ! -group "${GID}" -exec chown "${UID}:${GID}" {} \+
echo "[Info] End of startup script. Forum is starting."
exec su-exec "${UID}:${GID}" /bin/s6-svscan /services exec su-exec "${UID}:${GID}" /bin/s6-svscan /services