Hi, ive tried to script notification when IP change.
Im using it on my connection, 1 Public IP on WAN, nothing complicated like dualwan. Works fine for me.
Sounds interesting, great work!
Have implemented it, hope that is correct so far.
Copied the script as bash into the newly created folder:
/srv/custom_scripts/notify_change_ip.sh
and set the query in the crontab:
*/15 * * * /srv/custom_scripts/notify_change_ip.sh
Mail notification is turned on, but get the following message in the log:
Dec 20 16:45:01 turris crond[4948]: (root) CMD (/srv/custom_scripts/notify_change_ip.sh)
Dec 20 16:45:01 turris crond[4946]: (root) CMDOUT (/bin/sh: /srv/custom_scripts/notify_change_ip.sh: permission denied)
Dec 20 16:45:01 turris crond[4946]: (root) CMDEND (/srv/custom_scripts/notify_change_ip.sh)
Does the folder or script still need special permissions?