[fix] Avoid error in cron if executed in an other dir

This commit is contained in:
root 2018-09-10 02:41:02 +02:00
parent 0d8bb37353
commit 7d46f25d86

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
script_dir="$(dirname "$0")"
source ./monitor-ynh-settings source $script_dir/monitor-ynh-settings
IPV4=false IPV4=false
if ping -c 1 9.9.9.9 &> /dev/null && dig +short A wikipedia.fr &> /dev/null; then if ping -c 1 9.9.9.9 &> /dev/null && dig +short A wikipedia.fr &> /dev/null; then