From 68c7adf107b06baa95705cfb48ccd065fc676047 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 9 Jan 2023 11:59:34 -0500 Subject: [PATCH] Delete dashy-update.sh prune --- misc/dashy-update.sh | 68 -------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 misc/dashy-update.sh diff --git a/misc/dashy-update.sh b/misc/dashy-update.sh deleted file mode 100644 index d9c3826f..00000000 --- a/misc/dashy-update.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash -set -e -clear -YW=$(echo "\033[33m") -BL=$(echo "\033[36m") -RD=$(echo "\033[01;31m") -CM='\xE2\x9C\x94\033' -GN=$(echo "\033[1;92m") -CL=$(echo "\033[m") -while true; do - read -p "This will Update Dashy LXC. Proceed(y/n)?" yn - case $yn in - [Yy]*) break ;; - [Nn]*) exit ;; - *) echo "Please answer yes or no." ;; - esac -done -clear -function header_info { - echo -e "${RD} - _____ _ - | __ \ | | - | | | | __ _ ___| |__ _ _ - | | | |/ _ / __| _ \| | | | - | |__| | (_| \__ \ | | | |_| | - |_____/ \__,_|___/_| |_|\__, | - UPDATE __/ | - |___/ -${CL}" -} - -header_info -echo -en "${GN} Stopping Dashy... " -systemctl stop dashy -sleep 1 -echo -e "${CM}${CL} \r" - -echo -en "${GN} Backup conf.yml... " -cd ~ -cp -R /dashy/public/conf.yml conf.yml -sleep 1 -echo -e "${CM}${CL} \r" - -echo -en "${GN} Updating Dashy... " -cd /dashy -git merge &>/dev/null -git pull origin master &>/dev/null -yarn &>/dev/null -yarn build &>/dev/null -echo -e "${CM}${CL} \r" - -echo -en "${GN} Restoring conf.yml... " -cd ~ -cp -R conf.yml /dashy/public -sleep 1 -echo -e "${CM}${CL} \r" - -echo -en "${GN} Cleaning... " -rm -rf conf.yml -sleep 1 -echo -e "${CM}${CL} \r" - -echo -en "${GN} Starting Dashy... " -systemctl start dashy -sleep 1 -echo -e "${CM}${CL} \r" - -echo -e "${GN} Finished ${CL}\n"