Skip to content

Commit

Permalink
Merge pull request #319 from mekanix/feature/mkjail-update
Browse files Browse the repository at this point in the history
State currently running version on upgrade
  • Loading branch information
mekanix authored Apr 18, 2023
2 parents f0d78e1 + 7520ba1 commit b2c910b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mkjail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ mkdir -p "${BSDINSTALL_CHROOT}/usr/local/etc/pkg/repos"
echo -e "FreeBSD: {\n url: \"pkg+http://${PKG_MIRROR}/\${ABI}/${PKG_REPO}\",\n}">"${BSDINSTALL_CHROOT}/usr/local/etc/pkg/repos/FreeBSD.conf"
cp /etc/resolv.conf "${BSDINSTALL_CHROOT}/etc/resolv.conf"
if [ "${UPDATE}" != "no" -a "${OS_VERSION_NAME}" = "RELEASE" ]; then
chroot "${BSDINSTALL_CHROOT}" freebsd-update fetch install
chroot "${BSDINSTALL_CHROOT}" freebsd-update --currently-running "${OS_VERSION}-${OS_VERSION_NAME}" fetch install
fi
chroot "${BSDINSTALL_CHROOT}" pw group add provision -g 666
chroot "${BSDINSTALL_CHROOT}" pw user add provision -u 666 -g provision -s /bin/tcsh -G wheel -m
Expand Down

0 comments on commit b2c910b

Please sign in to comment.