fixed cron cat
This commit is contained in:
parent
6c4c7b5a33
commit
8b4c8b8bcd
@ -46,11 +46,11 @@ sudo npm install pm2 -g
|
|||||||
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./..
|
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./..
|
||||||
|
|
||||||
# set up time update cronjob
|
# set up time update cronjob
|
||||||
cat > /etc/cron.hourly/ntpdate << EOF
|
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sudo service ntp stop
|
sudo service ntp stop
|
||||||
sudo ntpdate -s ntp.ubuntu.com
|
sudo ntpdate -s ntp.ubuntu.com
|
||||||
sudo service ntp start
|
sudo service ntp start
|
||||||
EOF
|
EOF"
|
||||||
|
|
||||||
sudo chmod 755 /etc/cron.hourly/ntpdate
|
sudo chmod 755 /etc/cron.hourly/ntpdate
|
||||||
|
Loading…
Reference in New Issue
Block a user