mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
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:
parent
681006cd39
commit
890ca6435e
@ -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"
|
||||
|
||||
|
||||
@ -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=${?}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user