Merge pull request #184 from cubedro/develop

Added pm2 flush in hourly cron
This commit is contained in:
Marian OANCΞA 2015-06-17 05:56:47 +03:00
commit 74fdaa3dba
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ sudo apt-get install -y build-essential git unzip wget nodejs npm ntp cloud-util
# set up time update cronjob
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
#!/bin/sh
pm2 flush
sudo service ntp stop
sudo ntpdate -s ntp.ubuntu.com
sudo service ntp start