git: 7d65d24dfd8e - main - sysutils/firstboot-freebsd-update: Add --not-running-from-cron
Colin Percival
cperciva at FreeBSD.org
Thu Jun 24 20:38:25 UTC 2021
The branch main has been updated by cperciva:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b
commit 7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b
Author: Colin Percival <cperciva at FreeBSD.org>
AuthorDate: 2021-06-24 20:37:34 +0000
Commit: Colin Percival <cperciva at 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."
More information about the dev-commits-ports-all
mailing list