aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2021-03-19 01:14:20 +0200
committerkaotisk <kaotisk@arching-kaos.com>2021-03-19 01:14:20 +0200
commitf057c1b520ff44b9bceb9827f7a7856f0d069b8e (patch)
tree000def91355430641558c74f269042f4ef3785c2
parent000ecd93a27c6a571e82439e39b8da857888943e (diff)
downloadpython-cjdns-peering-tools-f057c1b520ff44b9bceb9827f7a7856f0d069b8e.tar.gz
python-cjdns-peering-tools-f057c1b520ff44b9bceb9827f7a7856f0d069b8e.tar.bz2
python-cjdns-peering-tools-f057c1b520ff44b9bceb9827f7a7856f0d069b8e.zip
Added shell script for help running and applying the new credentials
-rw-r--r--peer_info_generate.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/peer_info_generate.sh b/peer_info_generate.sh
new file mode 100644
index 0000000..5b53c42
--- /dev/null
+++ b/peer_info_generate.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# We run this like this !!!
+echo "Exporting configuration to workfile..."
+cat /etc/cjdroute.conf | cjdroute --cleanconf > cjdroute.conf
+echo "Backup existing configuration..."
+cp /etc/cjdroute.conf /etc/cjdroute.conf-backup
+echo "Starting script..."
+python peer_info_generate.sh
+echo "Assuming everything went well ^.^"
+echo "Installing new configuration..."
+cat cjdroute.conf > /etc/cjdroute.conf
+echo "Restarting CJDNS with new peer slots..."
+systemctl restart cjdns.service