Skip to content

Commit

Permalink
Move cache:clear after extension installation
Browse files Browse the repository at this point in the history
This seems to solve issue mondediefr#81 as calling /flarum/app/flarum before extensions are installed will disable them, as per flarum/framework#2629
  • Loading branch information
arthurtemple authored Jan 23, 2023
1 parent 3329c55 commit 8842be1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rootfs/usr/local/bin/startup
Original file line number Diff line number Diff line change
Expand Up @@ -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

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
if [ -s "${LIST_FILE}" ]; then
Expand All @@ -94,6 +93,8 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/pub
echo "[INFO] No installed extensions"
fi

su-exec "${UID}:${GID}" php /flarum/app/flarum cache:clear

echo "[INFO] Flarum already installed, init app: DONE"
else
# if no installation was performed before
Expand Down

0 comments on commit 8842be1

Please sign in to comment.