Browse Source

Initial commit: v-update-sys-theme

Downloads latest CSS stylesheets from GitHub.
Kristan Kenney 6 years ago
parent
commit
d02a9ebb06
1 changed files with 25 additions and 0 deletions
  1. 25 0
      bin/v-update-sys-theme

+ 25 - 0
bin/v-update-sys-theme

@@ -0,0 +1,25 @@
+#!/bin/bash
+
+source $HESTIA/func/main.sh
+source $HESTIA/conf/hestia.conf
+
+echo "Updating system base theme..."
+if [ -e "$HESTIA/web/css/styles.min.css" ]; then
+    rm -f "$HESTIA/web/css/styles.min.css"
+fi
+wget -qO $HESTIA/web/css/styles.min.css $HESTIA_GIT_REPO/$RELEASE_BRANCH/web/css/styles.min.css
+
+echo "Updating included themes..."
+for themefile in `ls $HESTIA/install/deb/themes`; do
+
+if [ -e $themefile ]; then
+    rm -f $themefile
+fi
+
+wget -qO $HESTIA_INSTALL_DIR/themes/$themefile $HESTIA_GIT_REPO/$RELEASE_BRANCH/install/deb/themes/$themefile
+done
+
+if [ "$THEME" != "default" ]; then
+    echo "Applying updated system interface theme..."
+    $BIN/v-change-sys-theme $THEME
+fi