Hello,
I'm sorry if this is the wrong section/place to post this!
I've got a PiHole, an have set up some iOS Shortcuts to control it over SSH.
I've set up a script that disables Blocking, and then runs another script that waits one hour and reenables it.
Shortcuts seems to keep running, following the 1hr delay script that i though would run detached. Any ideas on how to run the script without iOS Shortcuts thinking the script is still running?
Code snippets and screenhots blow:
Thanks!
I'm sorry if this is the wrong section/place to post this!
I've got a PiHole, an have set up some iOS Shortcuts to control it over SSH.
I've set up a script that disables Blocking, and then runs another script that waits one hour and reenables it.
Shortcuts seems to keep running, following the 1hr delay script that i though would run detached. Any ideas on how to run the script without iOS Shortcuts thinking the script is still running?
Code snippets and screenhots blow:
Disable Script Ran by Shortcuts
Delay + Enable script
iOS Shortcut
pihole disable
curl --data "param1=value1¶m2=value2" https://maker.ifttt.com/trigger/pihole_disabled/with/key/b7*********************2o
bash pihole-enable-delay &
Delay + Enable script
sleep 3600
pihole enable
curl --data "param1=value1¶m2=value2" https://maker.ifttt.com/trigger/pihole_enabled/with/key/b****************p597-Z4lsit2o
exit
iOS Shortcut
Thanks!