Move cache:clear after extension installation

This seems to solve issue #81 as calling /flarum/app/flarum before extensions are installed will disable them, as per https://github.com/flarum/framework/pull/2629
pull/115/head
Arthur Templé 2023-01-23 13:14:30 +01:00 committed by GitHub
parent 3329c55572
commit 8842be1427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,6 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/pub
-e "s|<FORUM_URL>|${FORUM_URL}|g" /flarum/app/config.php.sample -e "s|<FORUM_URL>|${FORUM_URL}|g" /flarum/app/config.php.sample
cp -p /flarum/app/config.php.sample /flarum/app/config.php cp -p /flarum/app/config.php.sample /flarum/app/config.php
su-exec "${UID}:${GID}" php /flarum/app/flarum cache:clear
# Download extra extensions installed with composer wrapup script # Download extra extensions installed with composer wrapup script
if [ -s "${LIST_FILE}" ]; then if [ -s "${LIST_FILE}" ]; then
@ -94,6 +93,8 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/pub
echo "[INFO] No installed extensions" echo "[INFO] No installed extensions"
fi fi
su-exec "${UID}:${GID}" php /flarum/app/flarum cache:clear
echo "[INFO] Flarum already installed, init app: DONE" echo "[INFO] Flarum already installed, init app: DONE"
else else
# if no installation was performed before # if no installation was performed before