mirror of
https://github.com/YunoHost/monitor-ynh.git
synced 2024-09-03 20:06:24 +02:00
[fix] Avoid error in cron if executed in an other dir
This commit is contained in:
parent
0d8bb37353
commit
7d46f25d86
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ./monitor-ynh-settings
|
||||
script_dir="$(dirname "$0")"
|
||||
source $script_dir/monitor-ynh-settings
|
||||
|
||||
IPV4=false
|
||||
if ping -c 1 9.9.9.9 &> /dev/null && dig +short A wikipedia.fr &> /dev/null; then
|
||||
|
|
Loading…
Reference in a new issue