chown improvement and additional logging

pull/65/head
marty 2020-11-18 20:03:36 +01:00
parent 5f902573b9
commit 08415a5c87
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"
fi
echo "[INFO] Init done, launch flarum..."
echo "[INFO] Init done"
else
# if no installation was performed before
echo "[INFO] First launch, installation..."
@ -130,7 +130,9 @@ else
fi
# Set permissions for /flarum folder
find /flarum ! -user "${UID}" -exec chown "${UID}:${GID}" {} \;
find /flarum ! -group "${GID}" -exec chown "${UID}:${GID}" {} \;
echo "[INFO] Setting folder permissions"
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