- 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.shpressEnter. - For executing the script, type/ copy
/location/cpupg.shpressEnter
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 ROOTand shows[CyberPanel UPG] CHECKING IF LOGGED IN AS ROOT....
- If user is
rootthen it will show[CyberPanel UPG] LOGGED IN AS ROOT!and go to next step. - If user is not
rootthen 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 AVAILABILITYand shows[CyberPanel UPG] CHECKING FOR INTERNET AVAILABILITY....
- If internet is
availablethen it will show[CyberPanel UPG] INTERNET IS AVAILABLE!and go to next step. - If internet is
unavailablethen 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 STATUSand shows[CyberPanel UPG] CHECKING FOR UPGRADE STATUS....
- If upgrade status is
enablethen it will show[CyberPanel UPG] UPGRADE IS ENABLED!and go to next step. - If upgrade status is not
enablethen it will show[CyberPanel UPG] UPGRADE IS DISABLED!and exit.
- Now it will commence CyberPanel upgrade if it get's upgrade status
enablefrom 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, 1because 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!!