Skip to content

Commit 13ef8ad

Browse files
committed
update scripts
1 parent 8b62d3e commit 13ef8ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ec2-ubuntu-nginx-php.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@
197197
"sudo -H pip install cloudwatchmon\n",
198198
"sudo git clone https://github.com/osiegmar/cloudwatch-mon-scripts-python.git\n",
199199
"sudo python3 cloudwatch-mon-scripts-python/setup.py install\n",
200-
"sudo sh /usr/local/bin/aws-ec2-nginx-cf/scripts/script.sh\n",
201-
"sudo sh /usr/local/bin/aws-ec2-nginx-cf/scripts/cron.sh\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"
202202
]
203203
]
204204
}

scripts/script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
crontab -l > mon_cron
22
cat >> mon_cron << EOF
3-
*/5 * * * * /usr/bin/sudo /usr/local/bin/aws-ec2-nginx-cf/cron.sh >> /var/www/html/logs/cron.log
3+
* * * * * /usr/bin/sudo /usr/local/bin/aws-ec2-nginx-cf/cron.sh >> /var/www/html/logs/cron.log
44
EOF
55
crontab < mon_cron
66
rm -f mon_cron

0 commit comments

Comments
 (0)