littlejeem / monitor_scripts

A repository of scripts designed to monitor or oversea functions
GNU General Public License v3.0
0 stars 0 forks source link

script installs but fails #2

Open littlejeem opened 5 years ago

littlejeem commented 5 years ago

script installs as expected but no pushover notification received

littlejeem commented 5 years ago

this happens because the variable $PWD , when run from root cron, gives /root/ as the directory to find the config in. Fix needed

littlejeem commented 5 years ago

setting a variable in IPChecker.sh with the correct path resolves the issue, but this means not able to use the config file, better solution needed.