fixed cron cat

This commit is contained in:
cubedro 2015-04-04 02:02:39 +03:00
parent 6c4c7b5a33
commit 8b4c8b8bcd
1 changed files with 2 additions and 2 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