diff --git a/freebox/freebox_reboot.sh b/freebox/freebox_reboot.sh index 167d97e..c596c87 100755 --- a/freebox/freebox_reboot.sh +++ b/freebox/freebox_reboot.sh @@ -4,7 +4,7 @@ set -euo pipefail FREEBOX_HOST="${FREEBOX_HOST:-mafreebox.freebox.fr}" API_BASE="${API_BASE:-https://${FREEBOX_HOST}/api/v4}" APP_ID="${APP_ID:-fr.bash.reboot}" -TOKEN_FILE="${TOKEN_FILE:-./freebox_app_token.txt}" +TOKEN_FILE="${TOKEN_FILE:-$(dirname "$0")/freebox_app_token.txt}" CA_FILE="${CA_FILE:-$(dirname "$0")/freebox_ecc_root_ca.pem}" for cmd in curl jq openssl; do