improve script: absolute path instead of relative

This commit is contained in:
2026-07-25 14:21:52 +02:00
parent 5a4b1a3bf1
commit ccbd7aff90
+1 -1
View File
@@ -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