From cde1395482e4f46ec96eb22d640552b20d81e900 Mon Sep 17 00:00:00 2001 From: cubedro Date: Wed, 17 Jun 2015 05:56:28 +0300 Subject: [PATCH] added pm2 flush in hourly cron --- bin/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/build.sh b/bin/build.sh index d76a407..da8482d 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -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