Automatic Updates - SonarSoftware/customer_portal GitHub Wiki
If you'd like to enable automatic updates for your customer portal, there is a simple script provided that can do so. This will automatically check for new versions daily, download them, and update your portal.
First, we need some tools available for this to work. Type apt-get -y install unzip wget
.
Now you need to copy the auto updater into your cron.d directory. Cron is a system in Linux that can run things automatically on a set interval. The auto updater is available in the base directory you downloaded the customer portal to - so, if you followed the examples and downloaded it to your home directory, you can find the file in ~/customer_portal-master/auto_updater
. To force this file to run once per day and check for new updates, run cp ~/customer_portal-master/auto_updater /etc/cron.d
and then chmod 644 /etc/cron.d/auto_updater
.
With this file in place, your server will check for new updates to the customer portal at midnight every day, and apply any it finds.