File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 197
197
" sudo -H pip install cloudwatchmon\n " ,
198
198
" sudo git clone https://github.com/osiegmar/cloudwatch-mon-scripts-python.git\n " ,
199
199
" sudo python3 cloudwatch-mon-scripts-python/setup.py install\n " ,
200
- " sh /usr/local/bin/aws-ec2-nginx-cf/scripts/script.sh\n " ,
201
- " sh /usr/local/bin/aws-ec2-nginx-cf/scripts/cron.sh\n "
200
+ " sudo sh /usr/local/bin/aws-ec2-nginx-cf/scripts/script.sh\n "
202
201
]
203
202
]
204
203
}
Original file line number Diff line number Diff line change 1
1
crontab -l > mon_cron
2
2
cat >> mon_cron << EOF
3
- * * * * * /usr/bin/sudo /usr/local/bin/aws-ec2-nginx-cf/cron.sh >> /var/www/html/logs/cron.log
3
+ * * * * * /usr/bin/sudo sh /usr/local/bin/aws-ec2-nginx-cf/scripts/ cron.sh >> /var/www/html/logs/cron.log 2>&1
4
4
EOF
5
5
crontab < mon_cron
6
6
rm -f mon_cron
You can’t perform that action at this time.
0 commit comments