Move restore favorites after plugin installs

This commit is contained in:
SimonFair
2024-07-13 15:33:37 +01:00
parent 667418e656
commit f2abfaf292
+5 -5
View File
@@ -76,11 +76,6 @@ fi
/usr/local/emhttp/webGui/scripts/notify smtp-init
/usr/local/emhttp/webGui/scripts/notify cron-init
# restore favorites
if [[ -x /usr/local/emhttp/webGui/scripts/restore_favorites ]]; then
/usr/local/emhttp/webGui/scripts/restore_favorites
fi
# start nchan monitoring -> stop all running nchan processes when no subscribers are connected
if [[ -x /usr/local/sbin/monitor_nchan ]]; then
/usr/local/sbin/monitor_nchan
@@ -177,6 +172,11 @@ for LANGUAGE in $CONFIG/plugins/lang-*.xml; do
done
shopt -u nullglob
# restore favorites
if [[ -x /usr/local/emhttp/webGui/scripts/restore_favorites ]]; then
/usr/local/emhttp/webGui/scripts/restore_favorites
fi
# Enable persistent bash history
PERSISTENT_BASH_HISTORY=$(grep "persist_bash_history" /boot/config/plugins/dynamix/dynamix.cfg 2>/dev/null | cut -d'=' -f2 | sed 's/"//g')
if [[ $PERSISTENT_BASH_HISTORY == 1 ]]; then