diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2021-06-24 20:37:34 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2021-06-24 20:37:34 +0000 |
commit | 7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b (patch) | |
tree | 9fad2d4e34cba4f496a668cc61f2398a15f32b6b | |
parent | 1be1ceea1c1892b007922036c4d57856364d627b (diff) | |
download | ports-7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b.tar.gz ports-7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b.zip |
sysutils/firstboot-freebsd-update: Add --not-running-from-cron
On systems without a working console, running freebsd-update fetch
from an rc script triggers the "should not be run non-interactively"
error. Solve this by telling freebsd-update to skip that check.
Reported by: Mike Bristow
-rw-r--r-- | sysutils/firstboot-freebsd-update/Makefile | 2 | ||||
-rw-r--r-- | sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/firstboot-freebsd-update/Makefile b/sysutils/firstboot-freebsd-update/Makefile index fd86494e9571..ae3a9d035acc 100644 --- a/sysutils/firstboot-freebsd-update/Makefile +++ b/sysutils/firstboot-freebsd-update/Makefile @@ -1,5 +1,5 @@ PORTNAME= firstboot-freebsd-update -PORTVERSION= 1.2 +PORTVERSION= 1.3 CATEGORIES= sysutils MASTER_SITES= # none DISTFILES= # none diff --git a/sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in b/sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in index d2a925d9691f..220825e87710 100644 --- a/sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in +++ b/sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in @@ -41,7 +41,7 @@ firstboot_freebsd_update_run() esac fi - freebsd-update fetch + freebsd-update --not-running-from-cron fetch if [ -e /var/db/freebsd-update/`echo / | sha256`-install ]; then freebsd-update install echo "Requesting reboot after installing updates." |