diff --git a/custom_entrypoint.sh b/custom_entrypoint.sh index 0aead91041389e99ee95ad5b7191253bbd4b508d..99c5c935840f52d05c4f34ccecc235984efe0d3a 100644 --- a/custom_entrypoint.sh +++ b/custom_entrypoint.sh @@ -19,4 +19,15 @@ rsync $rsync_options --include "/ecloud_drop_account" --exclude '/*' $SRC_DIR/cu rsync $rsync_options --include "/eelo/" --exclude '/*' $SRC_DIR/themes/ $DST_DIR/themes/ /entrypoint.sh "$@" -echo "NC exits" + +# force eelo theme to be (re)loaded after an upgrade + if [ "$(id -u)" = 0 ]; then + su -p www-data -s /bin/sh -c "php /var/www/html/occ config:system:set theme --value eelo" + su -p www-data -s /bin/sh -c "php /var/www/html/occ maintenance:theme:update" + else + sh -c "php /var/www/html/occ config:system:set theme --value eelo" + sh -c "php /var/www/html/occ maintenance:theme:update" + fi + + +echo "NC ready!"