mirror of
https://github.com/ThunixdotNet/www.git
synced 2026-01-23 23:10:17 +00:00
changing how the hook fires off
This commit is contained in:
@@ -24,7 +24,7 @@ syslog(LOG_INFO, 'Ansible Webhook recieved.');
|
||||
|
||||
|
||||
if (time()-filemtime($lastrun) > 300) {
|
||||
exec("/etc/cron.hourly/ansible-pull");
|
||||
exec("/usr/bin/touch /tmp/run_ansible");
|
||||
touch ($lastrun);
|
||||
echo "HTTP 200 - Ansible webhook recieved.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user