Skip to content

Commit b0b9605

Browse files
authored
Update cyberpanel_utility.sh
1 parent b560043 commit b0b9605

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

cyberpanel_utility.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ elif echo $OUTPUT | grep -q "CentOS Linux 8" ; then
2323
elif echo $OUTPUT | grep -q "Ubuntu 18.04" ; then
2424
echo -e "\nDetecting Ubuntu 18.04...\n"
2525
SERVER_OS="Ubuntu"
26+
elif echo $OUTPUT | grep -q "Ubuntu 20.04" ; then
27+
echo -e "\nDetecting Ubuntu 20.04...\n"
28+
SERVER_OS="Ubuntu"
2629
else
2730
cat /etc/*release
2831
echo -e "\nUnable to detect your OS...\n"
29-
echo -e "\nCyberPanel is supported on Ubuntu 18.04, CentOS 7.x, CentOS 8.x and CloudLinux 7.x...\n"
32+
echo -e "\nCyberPanel is supported on Ubuntu 18.04, Ubuntu 20.04, CentOS 7.x, CentOS 8.x and CloudLinux 7.x...\n"
3033
exit 1
3134
fi
3235
}
@@ -141,9 +144,9 @@ if [[ $SERVER_COUNTRY == "CN" ]] ; then
141144
GIT_CONTENT_URL="gitee.com/qtwrk/cyberpanel/raw"
142145
fi
143146

144-
echo -e "CyberPanel Upgrade will start in 10 seconds"
145-
echo -e "If you want to cancel, please press CTRL + C to cancel it"
146-
sleep 10
147+
#echo -e "CyberPanel Upgrade will start in 10 seconds"
148+
#echo -e "If you want to cancel, please press CTRL + C to cancel it"
149+
#sleep 10
147150
echo -e "CyberPanel upgrading..."
148151
rm -f /usr/local/cyberpanel_upgrade.sh
149152
wget -O /usr/local/cyberpanel_upgrade.sh -q https://$GIT_CONTENT_URL/${BRANCH_NAME}/cyberpanel_upgrade.sh

0 commit comments

Comments
 (0)