Merge pull request #45 from cubedro/develop

Fixed time update cron
This commit is contained in:
Marian OANCΞA 2015-04-04 02:03:35 +03:00
commit 7913ff4bce
2 changed files with 37 additions and 36 deletions

View File

@ -46,11 +46,11 @@ sudo npm install pm2 -g
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./..
# set up time update cronjob
cat > /etc/cron.hourly/ntpdate << EOF
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
#!/bin/sh
sudo service ntp stop
sudo ntpdate -s ntp.ubuntu.com
sudo service ntp start
EOF
EOF"
sudo chmod 755 /etc/cron.hourly/ntpdate

View File

@ -16,6 +16,7 @@
"name" : "node-app",
"cwd" : "~/bin/www/",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"log_file" : "~/logs/node-app-log.log",
"out_file" : "~/logs/node-app-out.log",
"error_file" : "~/logs/node-app-err.log",