Files
CyberPanel/preUpgrade.sh

9 lines
396 B
Bash
Raw Normal View History

2020-01-03 14:48:09 +01:00
#!/bin/sh
2020-01-22 14:22:06 +05:00
2020-01-29 14:25:42 +05:00
BRANCH_NAME=v$(curl -s https://cyberpanel.net/version.txt | sed -e 's|{"version":"||g' -e 's|","build":|.|g'| sed 's:}*$::')
2020-01-22 14:22:06 +05:00
2020-01-17 15:54:43 +01:00
rm -f /usr/local/cyberpanel_upgrade.sh
2020-01-22 14:22:06 +05:00
wget -O /usr/local/cyberpanel_upgrade.sh https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/cyberpanel_upgrade.sh 2>/dev/null
2020-01-17 15:54:43 +01:00
chmod 700 /usr/local/cyberpanel_upgrade.sh
/usr/local/cyberpanel_upgrade.sh