Skip to content

Commit

Permalink
update: correctly strip the locks on major upgrade
Browse files Browse the repository at this point in the history
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 bd9640b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update/opnsense-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit bd9640b

Please sign in to comment.