Skip to content
Permalink
Browse files

update: correctly strip the locks on major upgrade

We don't want them to linger after having performed the major
upgrade.  This is consistent with package behaviour.
  • Loading branch information...
fichtner committed Oct 17, 2017
1 parent 46f885c commit bd9640b652b06862129b03f26301ca0f4b14d3d0
Showing with 2 additions and 2 deletions.
  1. +2 −2 update/opnsense-update.sh
@@ -567,15 +567,15 @@ if [ "${DO_PKGS}" = "-p" ]; then
fi

if [ "${DO_BASE}" = "-b" ]; then
if [ -z "${DO_FORCE}" ]; then
if [ -z "${DO_FORCE}" -o -n "${DO_UPGRADE}" ]; then
rm -f ${VERSIONDIR}/base.lock
fi
fetch_set ${OBSOLETESET}
fetch_set ${BASESET}
fi

if [ "${DO_KERNEL}" = "-k" ]; then
if [ -z "${DO_FORCE}" ]; then
if [ -z "${DO_FORCE}" -o -n "${DO_UPGRADE}" ]; then
rm -f ${VERSIONDIR}/kernel.lock
fi
fetch_set ${KERNELSET}

0 comments on commit bd9640b

Please sign in to comment.
You can’t perform that action at this time.