FreeBSD Bugzilla – Attachment 200849 Details for
Bug 234673
sysutils/ipfs-go: add optional ifps_go_path to set IPFS_PATH when running
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update to files/ipfs-go.in for ipfs_go_path
ipfs-go-0.4.18.diff (text/plain), 1.27 KB, created by
David Bolcsfoldi
on 2019-01-06 22:28:52 UTC
(
hide
)
Description:
update to files/ipfs-go.in for ipfs_go_path
Filename:
MIME Type:
Creator:
David Bolcsfoldi
Created:
2019-01-06 22:28:52 UTC
Size:
1.27 KB
patch
obsolete
>Index: files/ipfs-go.in >=================================================================== >--- files/ipfs-go.in (revision 489550) >+++ files/ipfs-go.in (working copy) >@@ -17,7 +17,10 @@ > # Default: %%IPFS_USER%% > # ipfs_go_group (str): ipfs_go daemon group > # Default: %%IPFS_GROUP%% >+# ipfs_go_path (str): ipfs_go ipfs repo path >+# Default: %%IPFS_HOME%% > >+ > . /etc/rc.subr > > name=ipfs_go >@@ -27,6 +30,7 @@ > : ${ipfs_go_enable:="NO"} > : ${ipfs_go_user:="%%IPFS_USER%%"} > : ${ipfs_go_group:="%%IPFS_GROUP%%"} >+: ${ipfs_go_path:="%%IPFS_HOME%%"} > > logfile="%%IPFS_LOGDIR%%/${name}.log" > pidfile="/var/run/${name}.pid" >@@ -36,7 +40,7 @@ > > ipfs_go_prestart() { > install -d -o ${ipfs_go_user} -g ${ipfs_go_group} -m750 %%IPFS_LOGDIR%% >- [ -d ~%%IPFS_USER%%/.ipfs ] || /usr/bin/su - ${ipfs_go_user} -c "${command} init" >+ [ -d ${ipfs_go_path} ] || /usr/bin/su - ${ipfs_go_user} -c "env IPFS_PATH=${ipfs_go_path}; ${command} init" > } > > ipfs_go_start() { >@@ -43,6 +47,7 @@ > echo running ${command} daemon > export USER=${ipfs_go_user} > export HOME=$(echo ~%%IPFS_USER%%) >+ export IPFS_PATH=${ipfs_go_path} > /usr/sbin/daemon -p ${pidfile} -u ${ipfs_go_user} ${command} daemon >> ${logfile} 2>&1 > } >
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
Actions:
View
|
Diff
Attachments on
bug 234673
: 200849