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

Commit 7e4811a2 authored by Florent VINCENT's avatar Florent VINCENT 👾
Browse files

Update custom_entrypoint.sh to test which user launch commands in this file

parent f03c48cc
Loading
Loading
Loading
Loading
Loading
+10 −3
Original line number Original line Diff line number Diff line
@@ -21,7 +21,14 @@ rsync $rsync_options --include "/eelo/" --exclude '/*' $SRC_DIR/themes/ $DST_DIR
/entrypoint.sh "$@"
/entrypoint.sh "$@"


# force eelo theme to be loaded
# force eelo theme to be loaded
    whoami
    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 config:system:set theme --value eelo"
        su -p www-data -s /bin/sh -c "php /var/www/html/occ maintenance:theme:update"
        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 exits"

echo "NC ready!"