Skip to content

Commit

Permalink
bootstrap: remove database after package removal; closes opnsense#15
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 10, 2017
1 parent ad78914 commit 0b23f76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bootstrap/opnsense-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ fi

FBSDARCH=$(uname -p)
if [ "${FBSDARCH}" != "i386" -a \
"${FBSDARCH}" != "amd64" -a \
"${FBSDARCH}" != "armv6" ]; then
echo "Must be i386 or amd64 or armv6" >&2
"${FBSDARCH}" != "amd64" ]; then
echo "Must be i386 or amd64" >&2
exit 1
fi

FBSDVER=$(uname -r | colrm 13)
if [ "${FBSDVER}" != "11.0-RELEASE" ]; then
FBSDVER=$(uname -r | colrm 4)
if [ "${FBSDVER}" != "11." ]; then
echo "Must be a FreeBSD 11 release." >&2
exit 1
fi
Expand Down Expand Up @@ -140,6 +139,7 @@ if [ -z "${DO_BARE}" ]; then
pkg unlock -a
pkg delete -fa
fi
rm -f /var/db/pkg/*
fi

make -C ${WORKDIR}/core-stable-${VERSION} \
Expand Down

0 comments on commit 0b23f76

Please sign in to comment.