FreeBSD Bugzilla – Attachment 201782 Details for
Bug 235545
news/nzbhydra2: after install will not start missing permissions to create directory to /usr/local
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix nzbhydra.in to set permissions
file_235545.txt (text/plain), 1.72 KB, created by
Daniel Shafer
on 2019-02-06 03:17:34 UTC
(
hide
)
Description:
fix nzbhydra.in to set permissions
Filename:
MIME Type:
Creator:
Daniel Shafer
Created:
2019-02-06 03:17:34 UTC
Size:
1.72 KB
patch
obsolete
>Index: news/nzbhydra2/files/nzbhydra2.in >=================================================================== >--- news/nzbhydra2/files/nzbhydra2.in (revision 492285) >+++ news/nzbhydra2/files/nzbhydra2.in (working copy) >@@ -21,7 +21,7 @@ > # as wheel. > # nzbhydra2_dir: Directory where nzbhydra lives. > # Default: %%PREFIX%%/share/nzbhydra2 >-# nzbhydra2_datafolder: Data directory for nzbhydra (DB, Logs, config) >+# nzbhydra2_data_dir: Data directory for nzbhydra (DB, Logs, config) > # Default: %%PREFIX%%/nzbhydra2 > > . /etc/rc.subr >@@ -35,14 +35,17 @@ > : ${nzbhydra2_user:="nzbhydra2"} > : ${nzbhydra2_group:="nzbhydra2"} > : ${nzbhydra2_dir:="%%PREFIX%%/share/nzbhydra2"} >-: ${nzbhydra2_datafolder:="%%PREFIX%%/nzbhydra2"} >+: ${nzbhydra2_data_dir:="%%PREFIX%%/nzbhydra2"} > > pidfile="/var/run/nzbhydra2/nzbhydra2.pid" > command="%%PYTHON_CMD%%" >-command_args="${nzbhydra2_dir}/nzbhydra2wrapper.py --datafolder ${nzbhydra2_datafolder} --pidfile ${pidfile} --daemon --nobrowser --java %%JAVA%%" >+command_args="${nzbhydra2_dir}/nzbhydra2wrapper.py --datafolder ${nzbhydra2_data_dir} --pidfile ${pidfile} --daemon --nobrowser --java %%JAVA%%" >+start_precmd=nzbhydra2_precmd > >-start_precmd="prestart" >-prestart() { >+nzbhydra2_precmd() >+{ >+ export XDG_CONFIG_HOME=${nzbhydra2_data_dir} >+ > if [ -f ${pidfile} ]; then > rm -f ${pidfile} > echo "Removing stale pidfile." >@@ -50,8 +53,8 @@ > install -d -o ${nzbhydra2_user} -g ${nzbhydra2_group} ${pidfile%/*} > fi > >- if [ ! -d ${nzbhydra2_datadir} ]; then >- install -d -o ${nzbhydra2_user} -g ${nzbhydra2_group} ${nzbhydra2_datadir} >+ if [ ! -d ${nzbhydra2_data_dir} ]; then >+ install -d -o ${nzbhydra2_user} -g ${nzbhydra2_group} ${nzbhydra2_data_dir} > fi > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
daniel
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 235545
: 201782