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

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 # set up time update cronjob
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
#!/bin/sh #!/bin/sh
pm2 flush
sudo service ntp stop sudo service ntp stop
sudo ntpdate -s ntp.ubuntu.com sudo ntpdate -s ntp.ubuntu.com
sudo service ntp start sudo service ntp start