From 8b4c8b8bcdbe93e241c18caa77f814894ae3bda8 Mon Sep 17 00:00:00 2001 From: cubedro Date: Sat, 4 Apr 2015 02:02:39 +0300 Subject: [PATCH] fixed cron cat --- bin/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/build.sh b/bin/build.sh index 0d7eed6..a0c2624 100644 --- a/bin/build.sh +++ b/bin/build.sh @@ -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