Skip to content

Commit

Permalink
vmss_setup to root
Browse files Browse the repository at this point in the history
  • Loading branch information
pputnik committed Jul 5, 2018
1 parent 5ca2b33 commit dd24222
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vmss_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ sed -i "s/logger/$1/" /tmp/pinger.sh
sed -i "s/myId/`hostname`/" /tmp/pinger.sh

# old cron tasks will be deleted! Modify if needed
echo "* * * * * /tmp/pinger.sh >> /var/log/num.log 2>&1" > /var/spool/cron/crontabs/azureuser
chmod 600 /var/spool/cron/crontabs/azureuser
chown azureuser.azureuser /tmp/pinger.sh /var/log/num.log /var/spool/cron/crontabs/azureuser
#echo "* * * * * /tmp/pinger.sh >> /var/log/num.log 2>&1" > /var/spool/cron/crontabs/azureuser
echo "* * * * * /tmp/pinger.sh >> /var/log/num.log 2>&1" | crontab -
#chmod 600 /var/spool/cron/crontabs/azureuser
#chown azureuser.azureuser /tmp/pinger.sh /var/log/num.log /var/spool/cron/crontabs/azureuser

/etc/init.d/cron restart

0 comments on commit dd24222

Please sign in to comment.