git: 3a6131c7f736 - main - net/syncthing: Adjust parameters to syncthing-discosrv

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Mon, 11 Nov 2024 18:54:26 UTC
The branch main has been updated by dvl:

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

commit 3a6131c7f73637519d4e304bef17ccfd2c2b01a2
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2024-11-11 18:49:02 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2024-11-11 18:53:52 +0000

    net/syncthing: Adjust parameters to syncthing-discosrv
    
    The rc.d/syncthing-discosrv script was using -key and -cert
    The correct parameters are --key and --cert
    
    PR:             282646
---
 net/syncthing/files/syncthing-discosrv.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/syncthing/files/syncthing-discosrv.in b/net/syncthing/files/syncthing-discosrv.in
index e98d21a94591..fb0d32006395 100644
--- a/net/syncthing/files/syncthing-discosrv.in
+++ b/net/syncthing/files/syncthing-discosrv.in
@@ -44,7 +44,7 @@ export STNORESTART=true
 pidfile=/var/run/syncthingdiscosrv.pid
 procname="%%PREFIX%%/bin/stdiscosrv"
 command="/usr/sbin/daemon"
-command_args="-p ${pidfile} ${procname} -key ${syncthingdiscosrv_key} -cert ${syncthingdiscosrv_cert} ${syncthingdiscosrv_args} >> ${syncthingdiscosrv_log_file}"
+command_args="-p ${pidfile} ${procname} --key ${syncthingdiscosrv_key} --cert ${syncthingdiscosrv_cert} ${syncthingdiscosrv_args} >> ${syncthingdiscosrv_log_file}"
 syncthingdiscosrv_chdir=${syncthingdiscosrv_dir}
 
 start_precmd=syncthingdiscosrv_startprecmd