[Bug 294193] news/nzbhydra2: update to 8.2.0
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 294193] news/nzbhydra2: update to 8.2.0"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Apr 2026 09:35:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294193
--- Comment #3 from Vladimir Druzenko <vvd@FreeBSD.org> ---
7. Respect substitutions variables USER, GROUP, DATADIR:
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
JAVA=${JAVA} \
DISTVERSION=${DISTVERSION} \
USER=${USERS} \
GROUP=${GROUPS}
--- files/nzbhydra2.in.orig
+++ files/nzbhydra2.in
@@ -10,15 +10,15 @@
# nzbhydra2_enable (bool): Set to NO by default.
# Set it to YES to enable it.
# nzbhydra2_user: The user account nzbhydra daemon runs as what
-# you want it to be. It uses '_sabnzbd' user by
+# you want it to be. It uses '%%USER%%' user by
# default. Do not sets it as empty or it will run
# as root.
# nzbhydra2_group: The group account nzbhydra daemon runs as what
-# you want it to be. It uses 'nzbhydra2' group by
+# you want it to be. It uses '%%GROUP%%' group by
# default. Do not sets it as empty or it will run
# as wheel.
# nzbhydra2_dir: Directory where nzbhydra lives.
-# Default: %%PREFIX%%/share/nzbhydra2
+# Default: %%DATADIR%%
# nzbhydra2_data_dir: Data directory for nzbhydra (DB, Logs, config)
# Default: %%PREFIX%%/nzbhydra2
@@ -30,9 +30,9 @@
load_rc_config ${name}
: ${nzbhydra2_enable:="NO"}
-: ${nzbhydra2_user:="nzbhydra2"}
-: ${nzbhydra2_group:="nzbhydra2"}
-: ${nzbhydra2_dir:="%%PREFIX%%/share/nzbhydra2"}
+: ${nzbhydra2_user:="%%USER%%"}
+: ${nzbhydra2_group:="%%GROUP%%"}
+: ${nzbhydra2_dir:="%%DATADIR%%"}
: ${nzbhydra2_data_dir:="%%PREFIX%%/nzbhydra2"}
pidfile="/var/run/nzbhydra2/nzbhydra2.pid"
@@ -45,7 +45,7 @@
export XDG_CONFIG_HOME=${nzbhydra2_data_dir}
export NZBHYDRA_DISABLE_UPDATE=1
- find "%%PREFIX%%/share/nzbhydra2/lib/" ! -name
"core-%%DISTVERSION%%-exec.jar" -delete
+ find "${nzbhydra2_dir}/lib/" ! -name "core-%%DISTVERSION%%-exec.jar"
-delete
if [ -f ${pidfile} ]; then
rm -f ${pidfile}
--
You are receiving this mail because:
You are the assignee for the bug.