File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed
Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ source $HESTIA/conf/hestia.conf
1818# Action #
1919# ----------------------------------------------------------#
2020
21+ # Initialize local directory if it does not exist
22+ if [ ! -d " $HESTIA_THEMES_CUSTOM " ]; then
23+ mkdir -p $HESTIA_THEMES_CUSTOM
24+ fi
25+
2126# Theme argument and file detection
2227if [ -z " $theme " ]; then
2328 echo " ERROR: No theme specified."
Original file line number Diff line number Diff line change @@ -81,13 +81,15 @@ csv_list() {
8181# ----------------------------------------------------------#
8282
8383# Parsing templates
84+
85+ # System provided themes
8486themes=$( ls -v $HESTIA_THEMES /)
8587themes=$( echo " $themes " | grep ' \.css' | sed ' s/\.css$//' )
8688
87- if [ ! -z " $HESTIA_THEMES_CUSTOM " ] ; then
88- themes_custom=$( ls -v $HESTIA_THEMES_CUSTOM /)
89- themes_custom=$( echo " $themes_custom " | grep ' \.css' | sed ' s/\.css$//' )
90- fi
89+ # Custom themes
90+ themes_custom=$( ls -v $HESTIA_THEMES_CUSTOM /)
91+ themes_custom=$( echo " $themes_custom " | grep ' \.css' | sed ' s/\.css$//' )
92+
9193
9294# Listing data
9395case $format in
Original file line number Diff line number Diff line change 18231823$HESTIA /bin/v-change-sys-port $port
18241824
18251825# Set default theme
1826- $HESTIA /bin/v-change-sys-config-value ' THEME ' " default"
1826+ $HESTIA /bin/v-change-sys-theme ' default'
18271827
18281828# Starting Hestia service
18291829update-rc.d hestia defaults
Original file line number Diff line number Diff line change 17101710$HESTIA /bin/v-change-sys-port $port
17111711
17121712# Set default theme
1713- $HESTIA /bin/v-change-sys-config-value ' THEME ' " default"
1713+ $HESTIA /bin/v-change-sys-theme ' default'
17141714
17151715# Starting Hestia service
17161716update-rc.d hestia defaults
Original file line number Diff line number Diff line change 99# Set default theme
1010if [ -z $THEME ]; then
1111 echo " (*) Enabling support for themes..."
12- $BIN /v-change-sys-config-value ' THEME ' default
12+ $BIN /v-change-sys-theme ' default'
1313fi
1414
1515# Reduce SSH login grace time
You can’t perform that action at this time.
0 commit comments