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