Date: Thu, 24 Jun 2021 20:38:25 GMT From: Colin Percival <cperciva@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 7d65d24dfd8e - main - sysutils/firstboot-freebsd-update: Add --not-running-from-cron Message-ID: <202106242038.15OKcP7b012885@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/ports/commit/?id=7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b commit 7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b Author: Colin Percival <cperciva@FreeBSD.org> AuthorDate: 2021-06-24 20:37:34 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2021-06-24 20:37:34 +0000 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 --- sysutils/firstboot-freebsd-update/Makefile | 2 +- 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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106242038.15OKcP7b012885>