Browse Source

Update user interface theme when applying upgrades

Kristan Kenney 6 years ago
parent
commit
b71b3e5fff
1 changed files with 8 additions and 0 deletions
  1. 8 0
      func/upgrade.sh

+ 8 - 0
func/upgrade.sh

@@ -227,6 +227,14 @@ upgrade_rebuild_users() {
 }
 
 upgrade_restart_services() {
+    # Refresh user interface theme
+    if [ "$THEME" ]; then
+        if [ "$THEME" != "default" ]; then
+            echo "(*) Applying user interface updates..."
+            $BIN/v-change-sys-theme $THEME
+        fi
+    fi
+
     echo "(*) Restarting services..."
     sleep 5
     if [ ! -z "$MAIL_SYSTEM" ]; then