firmware: fix a glitch taining the upgrade log while installing squid

Only callers of -u are changelog.sh and install.sh but changelog.sh
doesn't even support LOCKFILE so do a mininal fix.
This commit is contained in:
Franco Fichtner 2024-01-30 13:31:47 +01:00
parent 681006cd39
commit 890ca6435e
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
LOCKFILE=/tmp/pkg_upgrade.progress
LOCKFILE=${LOCKFILE:-/tmp/pkg_upgrade.progress}
PACKAGE=${1}
TEE="/usr/bin/tee -a"

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (C) 2016-2023 Franco Fichtner <franco@opnsense.org>
# Copyright (C) 2016-2024 Franco Fichtner <franco@opnsense.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -107,7 +107,7 @@ fi
if [ -z "${DO_UNLOCKED}" ]; then
${FLOCK} ${LOCKFILE} ${COMMAND} "${@}"
else
${COMMAND} "${@}"
env LOCKFILE=/dev/null ${COMMAND} "${@}"
fi
RET=${?}