- NO LONGER MAINTAINED!
- This script will check for internet availability and then upgrade CyberPanel. Cyberpanel's own upgrade system is too much tedious for many users. That's why made this script.
- Wget | Link
Put the cpupg.sh
file to anyhwere you like. E.g., /home/scripts
.
- Open terminal.
- Give the file execute permission, type/ copy
sudo chmod +x /location/cpupg.sh
pressEnter
. - For executing the script, type/ copy
/location/cpupg.sh
pressEnter
This is a verbal representation of the script explaining how the script works.
-
Script will start executing and shows
[CyberPanel UPG] UPGRADE INITIATED...
. -
Now it will check for
LOGGED IN AS ROOT
and shows[CyberPanel UPG] CHECKING IF LOGGED IN AS ROOT...
.
- If user is
root
then it will show[CyberPanel UPG] LOGGED IN AS ROOT!
and go to next step. - If user is not
root
then it will show[CyberPanel UPG] NOT LOGGED IN AS ROOT!
,[CyberPanel UPG] YOU MUST BE LOGGED IN AS ROOT!
and exit.
- Now it will check for
INTERNET AVAILABILITY
and shows[CyberPanel UPG] CHECKING FOR INTERNET AVAILABILITY...
.
- If internet is
available
then it will show[CyberPanel UPG] INTERNET IS AVAILABLE!
and go to next step. - If internet is
unavailable
then it will show[CyberPanel UPG] INTERNET IS UNAVAILABLE!
,[CyberPanel UPG] TRY AGAIN LATER WHEN INTERNET IS AVAILABLE!
and exit.
- Now it will check for
UPGRADE STATUS
and shows[CyberPanel UPG] CHECKING FOR UPGRADE STATUS...
.
- If upgrade status is
enable
then it will show[CyberPanel UPG] UPGRADE IS ENABLED!
and go to next step. - If upgrade status is not
enable
then it will show[CyberPanel UPG] UPGRADE IS DISABLED!
and exit.
- Now it will commence CyberPanel upgrade if it get's upgrade status
enable
from Step 4 then shows the following,
[CyberPanel UPG] CHANGING DIRECTORY...
[CyberPanel UPG] DELETING PREVIOUS UPGRADE FILE...
[CyberPanel UPG] DOWNLOADING LATEST UPGRADE FILE...
[CyberPanel UPG] EXECUTING UPGRADE FILE...
- After the upgrade is finished it will exit.
- I have written the instructions based on CentOS 7.6.x.
- Files name are started with
0, 1
because of orderly manner. - I am new to this Scripting Business that's why if I made any mistake please point out any issue!
- I will update it frequently!
Working perfectly!!