mirror of https://github.com/oxen-io/lokinet
Patch lokinet-bootstrap to use system bootstrap path when run as root
parent
47f4a7b293
commit
b9e67f352c
@ -0,0 +1,23 @@
|
||||
From: Jason Rhinelander <jason@imaginary.ca>
|
||||
Date: Wed, 4 Sep 2019 15:50:06 -0300
|
||||
Subject: Make root bootstraps to system path
|
||||
|
||||
---
|
||||
lokinet-bootstrap | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/lokinet-bootstrap b/lokinet-bootstrap
|
||||
index 690eb9b..feed8cd 100755
|
||||
--- a/lokinet-bootstrap
|
||||
+++ b/lokinet-bootstrap
|
||||
@@ -12,6 +12,10 @@ helpme=
|
||||
default_url="https://seed.lokinet.org/bootstrap.signed"
|
||||
default_dest="$HOME/.lokinet/bootstrap.signed"
|
||||
|
||||
+if [ "$UID" == 0 ]; then
|
||||
+ default_dest=/var/lib/lokinet/bootstrap.signed
|
||||
+fi
|
||||
+
|
||||
if [ "$#" -gt 2 ]; then
|
||||
helpme=y
|
||||
fi
|
@ -1,3 +1,4 @@
|
||||
0001-make-check-runs-test-suite.patch
|
||||
0002-Remove-setcap.patch
|
||||
0003-Remove-ccache.patch
|
||||
0004-Make-root-bootstraps-to-system-path.patch
|
||||
|
Loading…
Reference in New Issue