Created
August 31, 2020 01:18
-
-
Save dlangille/5060e2f1d91e7e1bed9b8ff11784b2ea to your computer and use it in GitHub Desktop.
allow unattended updates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/share/mkjail/update.sh b/src/share/mkjail/update.sh | |
index ef34aa9..ad6e639 100755 | |
--- a/src/share/mkjail/update.sh | |
+++ b/src/share/mkjail/update.sh | |
@@ -25,7 +25,7 @@ _alljails() | |
echo "Updating ${JAILNAME} jail..." | |
echo "" | |
export UNAME_r=$(_get_version) | |
- freebsd-update -b ${JAILROOT}/${JAILNAME} -f ${JAILROOT}/${JAILNAME}/etc/freebsd-update.conf -F fetch install | |
+ PAGER=cat freebsd-update -b ${JAILROOT}/${JAILNAME} -f ${JAILROOT}/${JAILNAME}/etc/freebsd-update.conf -F fetch install | |
_set_version | |
fi | |
echo "" | |
@@ -38,7 +38,7 @@ _onejail() | |
echo "Updating ${JAILNAME} jail..." | |
echo "" | |
export UNAME_r=$(_get_version) | |
- freebsd-update -b ${JAILROOT}/${JAILNAME} -f ${JAILROOT}/${JAILNAME}/etc/freebsd-update.conf -F fetch install | |
+ PAGER=cat freebsd-update -b ${JAILROOT}/${JAILNAME} -f ${JAILROOT}/${JAILNAME}/etc/freebsd-update.conf -F fetch install | |
_set_version | |
exit 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment