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/2629pull/115/head
parent
3329c55572
commit
8842be1427
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue