Skip to content

Commit 4ac093a

Browse files
committed
adds scripts new path
1 parent 13ef8ad commit 4ac093a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ec2-ubuntu-nginx-php.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@
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-
"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"
202201
]
203202
]
204203
}

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-
* * * * * /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
44
EOF
55
crontab < mon_cron
66
rm -f mon_cron

0 commit comments

Comments
 (0)