Skip to content

Commit d02a9eb

Browse files
author
Kristan Kenney
committed
Initial commit: v-update-sys-theme
Downloads latest CSS stylesheets from GitHub.
1 parent c494b9b commit d02a9eb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

bin/v-update-sys-theme

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
fi
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+
fi

0 commit comments

Comments
 (0)