mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
firmware: visibility issue on #5136
This commit is contained in:
parent
1c895ed435
commit
af7543e79b
@ -30,5 +30,5 @@ LOCKFILE=/tmp/pkg_upgrade.progress
|
||||
: > ${LOCKFILE}
|
||||
|
||||
echo "***GOT REQUEST TO SYNC***" >> ${LOCKFILE}
|
||||
. /usr/local/opnsense/scripts/firmware/sync.subr.sh
|
||||
. /usr/local/opnsense/scripts/firmware/sync.subr.sh > /dev/null
|
||||
echo '***DONE***' >> ${LOCKFILE}
|
||||
|
||||
@ -37,18 +37,18 @@ for PACKAGE in $(/usr/local/sbin/pluginctl -g system.firmware.plugins | \
|
||||
|
||||
# plugins must pass a version check on up-to-date core package
|
||||
if [ "$(pkg version -t ${COREVER} ${REPOVER})" = "<" ]; then
|
||||
echo "Installation out of date. The update to ${COREPKG}-${REPOVER} is required." >> ${LOCKFILE} 2>&1
|
||||
echo "Installation out of date. The update to ${COREPKG}-${REPOVER} is required." | ${TEE} ${LOCKFILE}
|
||||
break
|
||||
fi
|
||||
|
||||
MUSTCHECK=
|
||||
fi
|
||||
|
||||
pkg install -y ${PACKAGE} >> ${LOCKFILE} 2>&1
|
||||
/usr/local/opnsense/scripts/firmware/register.php install ${PACKAGE} >> ${LOCKFILE} 2>&1
|
||||
(pkg install -y ${PACKAGE} 2>&1) | ${TEE} ${LOCKFILE}
|
||||
(/usr/local/opnsense/scripts/firmware/register.php install ${PACKAGE} 2>&1) | ${TEE} ${LOCKFILE}
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -z "${MUSTCHECK}" ]; then
|
||||
pkg autoremove -y >> ${LOCKFILE} 2>&1
|
||||
(pkg autoremove -y 2>&1) | ${TEE} ${LOCKFILE}
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user