From f7a212dc380da93b7461fd140ec260ec3afb2532 Mon Sep 17 00:00:00 2001 From: itsmesid Date: Sat, 28 Sep 2019 01:09:19 +0530 Subject: [PATCH] updates --- update.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 27c94d4..1bd6062 100644 --- a/update.sh +++ b/update.sh @@ -5,6 +5,13 @@ if [ $EUID != 0 ]; then exit $? fi +if (whiptail --title "Pihole Speedtest Mod Updater" --yesno "Proceed to update ?" 8 78) + then + echo "Proceeding with update" + else + exit 1; +fi + whiptail --title "Pihole Speedtest Mod " --msgbox "Pihole Speedtest Mod Updater. \nSupport : https://github.com/arevindh/pihole-speedtest " 8 78 echo "Updating Pihole and Speedtest-mod" @@ -26,7 +33,8 @@ pihole -up #Update lastest speedtest-mod cd /var/www/html -mv admin admin_org +rm -rf admin_bak +mv admin admin_bak git clone https://github.com/TooManyEggrolls/AdminLTE admin #Update latest webpage.sh for speedtest-mod