git: ffeb9fabda31 - main - misc/openhab: cd to '/' on start

Alexander Leidinger netchild at FreeBSD.org
Wed Jul 21 09:56:48 UTC 2021


The branch main has been updated by netchild:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ffeb9fabda31ad7195d2425ebe9e7fdc3091103d

commit ffeb9fabda31ad7195d2425ebe9e7fdc3091103d
Author:     Alexander Leidinger <netchild at FreeBSD.org>
AuthorDate: 2021-07-21 09:19:02 +0000
Commit:     Alexander Leidinger <netchild at FreeBSD.org>
CommitDate: 2021-07-21 09:56:39 +0000

    misc/openhab: cd to '/' on start
    
    /root may have the rights "o=", which will result in issues on start.
    Adapt the command line arguments to daemon(8) to cd to /.
    
    Reported by:    Sandro Wirth <sandro.wirth at gmx.de>
    Tested by:      Sandro Wirth <sandro.wirth at gmx.de>
---
 misc/openhab/Makefile         | 2 +-
 misc/openhab/files/openhab.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc/openhab/Makefile b/misc/openhab/Makefile
index e78d4a5b9c4c..a5c1a7b13aab 100644
--- a/misc/openhab/Makefile
+++ b/misc/openhab/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	openhab
 PORTVERSION=	3.1.0
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	misc java
 MASTER_SITES=	https://openhab.jfrog.io/artifactory/libs-release-local/org/openhab/distro/openhab/${PORTVERSION}/
 DISTNAME=	openhab-${PORTVERSION}
diff --git a/misc/openhab/files/openhab.in b/misc/openhab/files/openhab.in
index 3ff1043d3e7c..5900ce6669e7 100644
--- a/misc/openhab/files/openhab.in
+++ b/misc/openhab/files/openhab.in
@@ -65,7 +65,7 @@ export JAVA_VERSION=11
 pidfile=/var/run/${name}/${name}.pid
 
 command=/usr/sbin/daemon
-command_args="-p ${pidfile} -t openhab ${OPENHAB_HOME}/start.sh server"
+command_args="-p ${pidfile} -c -t openhab ${OPENHAB_HOME}/start.sh server"
 
 openhab_stop() {
 	${OPENHAB_RUNTIME}/bin/stop


More information about the dev-commits-ports-main mailing list