Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
litespeed_wiki:admin:autoupgrade-cron [2018/09/18 13:28]
Jackson Zhang
litespeed_wiki:admin:autoupgrade-cron [2018/09/18 14:31]
Lisa Clarke Proofreading
Line 1: Line 1:
-====== ​How to upgrade ​LSWS automatically by a cron job? ====== +====== ​Upgrade ​LSWS Automatically via Cron Job ====== 
-When a new version of LSWS released, it will be pushed to auto-update after one or two weeks, ​then the new version will be showing up from LSWS version manager ​for you to decide ​if to upgrade ​to the latest version manually ​or not.+When a new version of LiteSpeed Web Server is released, it will be pushed to auto-update after one or two weeks. Then, the new version will appear in the version manager, and you can decide ​whether ​to upgrade or not.
  
-If you would like to automatically upgrade to new version as soon as it is available, ​you can run some script to check the latest version from the following link and run lsup.sh command.+If you would like to automatically upgrade to new version as soon as it is available ​in auto-updateit is a two-step process:
  
-http://​update.litespeedtech.com/​ws/​latest.php+  - Run a script to check for the latest version <​code>​http://​update.litespeedtech.com/​ws/​latest.php</​code>​ 
 +  - Run the ''​lsup.sh''​ to upgrade <​code>/​usr/​local/​lsws/​admin/​misc/​lsup.sh -f -v <​latest-version></​code>​
  
-After you obtain ​the latest version, you can run the following to upgrade. +Add the two lines above to daily cron job and it will run automatically. ​
-  /​usr/​local/​lsws/​admin/​misc/​lsup.sh -f -v <​latest-version>​ +
-   +
-Set above process ​to daily cron job to run automatically. ​+
  • Admin
  • Last modified: 2023/04/14 19:29
  • by Lisa Clarke