You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hestiacp/bin/v-refresh-sys-theme

31 lines
937 B

#!/bin/bash
# info: change active system theme
# options: NONE
#
# example: v-refresh-sys-theme
#
# This function for changing the currently active system theme.
#----------------------------------------------------------#
# Variables & Functions #
#----------------------------------------------------------#
# Includes
# shellcheck source=/etc/hestiacp/hestia.conf
source /etc/hestiacp/hestia.conf
# shellcheck source=/usr/local/hestia/func/main.sh
source $HESTIA/func/main.sh
# load config file
source_conf "$HESTIA/conf/hestia.conf"
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#
# Store current theme name
CURRENT_THEME=$THEME
# Cycle theme to regenerate (helps if cache is stuck)
$BIN/v-change-sys-theme "default"
$BIN/v-change-sys-theme "$CURRENT_THEME"