Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64c3e34a authored by Florent VINCENT's avatar Florent VINCENT 👾
Browse files

Merge branch 'test-force-theme' into 'master'

force theme to be re-activated after an occ upgrade

See merge request !29
parents e4a5bdd1 9b670060
Loading
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -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!"