Explorar el Código

Ensure theme value is loaded from user.conf

Kristan Kenney hace 5 años
padre
commit
5f8dee3c62
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      bin/v-change-user-theme

+ 4 - 1
bin/v-change-user-theme

@@ -21,7 +21,8 @@ theme=$2
 source $HESTIA/func/main.sh
 source $HESTIA/func/main.sh
 # shellcheck source=/usr/local/hestia/conf/hestia.conf
 # shellcheck source=/usr/local/hestia/conf/hestia.conf
 source $HESTIA/conf/hestia.conf
 source $HESTIA/conf/hestia.conf
-
+# Unset theme variable from $HESTIA/conf/hestia.conf
+unset THEME
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                    Verifications                         #
 #                    Verifications                         #
@@ -42,6 +43,8 @@ check_hestia_demo_mode
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
+
+
 if [ -z $THEME ]; then
 if [ -z $THEME ]; then
     add_object_key "user" 'USER' "$user" 'THEME' 'LANGUAGE'
     add_object_key "user" 'USER' "$user" 'THEME' 'LANGUAGE'
 fi
 fi