From 8842be1427183584c58f4a9a8ace1b6f8f81f2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Templ=C3=A9?= Date: Mon, 23 Jan 2023 13:14:30 +0100 Subject: [PATCH] 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 --- rootfs/usr/local/bin/startup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/usr/local/bin/startup b/rootfs/usr/local/bin/startup index b8ee399..b3aba1e 100644 --- a/rootfs/usr/local/bin/startup +++ b/rootfs/usr/local/bin/startup @@ -79,7 +79,6 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/pub -e "s||${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 @@ -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