firmware: when calling one of the predefined commands via our launcher, the environment should be initialized.

While debugging some missing TLS parameters, I noticed the ciphers where different than expected. Digging a bit deeper seemed to indicate env_init() wasn't called on my end.
If SELF should be the command, the intention was likely to pass the parameter instead of the script name (which is always launcher)

cc @fichtner
This commit is contained in:
Ad Schellevis 2024-11-12 18:15:11 +01:00
parent 2ff993ea57
commit 1ff4c95f11

View File

@ -30,7 +30,7 @@ LOCKFILE=${LOCKFILE:-/tmp/pkg_upgrade.progress}
BASEDIR="/usr/local/opnsense/scripts/firmware"
PIPEFILE="/tmp/pkg_upgrade.pipe"
FLOCK="/usr/local/bin/flock"
SELF=$(basename ${0%.sh})
SELF=$(basename ${1%.sh})
TEE="/usr/bin/tee -a"
PRODUCT="OPNsense"