Upgrade LSWS Automatically via Cron Job

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 a new version as soon as it is available in auto-update, it is a two-step process:

  1. Run a script to check for the latest version
    http://update.litespeedtech.com/ws/latest.php
  2. Run the lsup.sh to upgrade
    /usr/local/lsws/admin/misc/lsup.sh -f -v <latest-version>

Add the two lines above to a daily cron job and it will run automatically.

  • Admin
  • Last modified: 2018/09/18 14:31
  • by Lisa Clarke