improve script: absolute path instead of relative
This commit is contained in:
@@ -4,7 +4,7 @@ set -euo pipefail
|
|||||||
FREEBOX_HOST="${FREEBOX_HOST:-mafreebox.freebox.fr}"
|
FREEBOX_HOST="${FREEBOX_HOST:-mafreebox.freebox.fr}"
|
||||||
API_BASE="${API_BASE:-https://${FREEBOX_HOST}/api/v4}"
|
API_BASE="${API_BASE:-https://${FREEBOX_HOST}/api/v4}"
|
||||||
APP_ID="${APP_ID:-fr.bash.reboot}"
|
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}"
|
CA_FILE="${CA_FILE:-$(dirname "$0")/freebox_ecc_root_ca.pem}"
|
||||||
|
|
||||||
for cmd in curl jq openssl; do
|
for cmd in curl jq openssl; do
|
||||||
|
|||||||
Reference in New Issue
Block a user