From 67e3da7600f122e2bfc25276a7432cd845e20d63 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 12 Feb 2021 11:54:09 +0100 Subject: [PATCH] firmware: no more PIPEFILE in security audit #4500 --- src/opnsense/scripts/firmware/security.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/opnsense/scripts/firmware/security.sh b/src/opnsense/scripts/firmware/security.sh index 8dbbaf488..1442b580b 100755 --- a/src/opnsense/scripts/firmware/security.sh +++ b/src/opnsense/scripts/firmware/security.sh @@ -25,16 +25,11 @@ # POSSIBILITY OF SUCH DAMAGE. LOCKFILE="/tmp/pkg_upgrade.progress" -PIPEFILE="/tmp/pkg_upgrade.pipe" TEE="/usr/bin/tee -a" : > ${LOCKFILE} -rm -f ${PIPEFILE} -mkfifo ${PIPEFILE} echo "***GOT REQUEST TO AUDIT SECURITY***" >> ${LOCKFILE} echo "Currently running $(opnsense-version) at $(date)" >> ${LOCKFILE} -${TEE} ${LOCKFILE} < ${PIPEFILE} & -pkg audit -F > ${PIPEFILE} 2>&1 -sleep 1 # give the system time to flush the buffer to console +(pkg audit -F 2>&1) | ${TEE} ${LOCKFILE} echo '***DONE***' >> ${LOCKFILE}