Skip to content

Commit 5f8dee3

Browse files
author
Kristan Kenney
committed
Ensure theme value is loaded from user.conf
1 parent c509696 commit 5f8dee3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/v-change-user-theme

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ theme=$2
2121
source $HESTIA/func/main.sh
2222
# shellcheck source=/usr/local/hestia/conf/hestia.conf
2323
source $HESTIA/conf/hestia.conf
24-
24+
# Unset theme variable from $HESTIA/conf/hestia.conf
25+
unset THEME
2526

2627
#----------------------------------------------------------#
2728
# Verifications #
@@ -42,6 +43,8 @@ check_hestia_demo_mode
4243
# Action #
4344
#----------------------------------------------------------#
4445

46+
47+
4548
if [ -z $THEME ]; then
4649
add_object_key "user" 'USER' "$user" 'THEME' 'LANGUAGE'
4750
fi

0 commit comments

Comments
 (0)