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

This reverts commit 1ff4c95f115028cd3786f249ef77500767c904bf.

Intended side effect so that the launcher will have access to the vars
published by config.sh -- when the launcher starts the actual script
the script itself will source the config.sh again causing the env_init()
to be called for all participating COMMANDS.  This ensures the env_init()
call is locked by default.
This commit is contained in:
Franco Fichtner 2024-11-13 16:06:31 +01:00
parent 3b54ba517f
commit b0fdeae6d2

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 ${1%.sh})
SELF=$(basename ${0%.sh})
PKG="/usr/local/sbin/pkg"
TEE="/usr/bin/tee -a"
PRODUCT="OPNsense"