-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
38 lines (38 loc) · 1015 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
clear
echo "XeonPanel v0.8 Update Script"
echo "Copyright © 2022 Xeonpanel."
echo "For support join our community: https://discord.gg/4y9X28Ubxd"
sleep 1s
echo ""
if [ "$(id -u)" != "0" ]; then
printf "This script must be run as root\nYou can login as root with\033[0;32m sudo su -\033[0m\n" 1>&2
exit 1
fi
read -p "Are you sure you want to continue? [y/n] " installation
if [[ $installation == "y" || $installation == "Y" || $installation == "yes" || $installation == "Yes" ]]
then
clear
echo "Updating panel ( v0.8 )"
echo ""
sleep 1s
cd /etc
sudo service xeonpanel stop
sudo git pull https://github.com/Xeonpanel/Panel.git xeonpanel
sudo service xeonpanel start
echo "--> Panel update completed"
sleep 1s
clear
echo "Updating deamon ( v0.8 )"
echo ""
sleep 1s
cd /etc
sudo service deamon stop
sudo git pull https://github.com/Xeonpanel/Deamon.git deamon
sudo service deamon start
else
echo ""
echo " --> Update cancelled"
echo ""
fi
exit