We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c494b9b commit d02a9ebCopy full SHA for d02a9eb
1 file changed
bin/v-update-sys-theme
@@ -0,0 +1,25 @@
1
+#!/bin/bash
2
+
3
+source $HESTIA/func/main.sh
4
+source $HESTIA/conf/hestia.conf
5
6
+echo "Updating system base theme..."
7
+if [ -e "$HESTIA/web/css/styles.min.css" ]; then
8
+ rm -f "$HESTIA/web/css/styles.min.css"
9
+fi
10
+wget -qO $HESTIA/web/css/styles.min.css $HESTIA_GIT_REPO/$RELEASE_BRANCH/web/css/styles.min.css
11
12
+echo "Updating included themes..."
13
+for themefile in `ls $HESTIA/install/deb/themes`; do
14
15
+if [ -e $themefile ]; then
16
+ rm -f $themefile
17
18
19
+wget -qO $HESTIA_INSTALL_DIR/themes/$themefile $HESTIA_GIT_REPO/$RELEASE_BRANCH/install/deb/themes/$themefile
20
+done
21
22
+if [ "$THEME" != "default" ]; then
23
+ echo "Applying updated system interface theme..."
24
+ $BIN/v-change-sys-theme $THEME
25
0 commit comments