summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/freenet/files/update-freenet')
-rw-r--r--net-p2p/freenet/files/update-freenet17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-p2p/freenet/files/update-freenet b/net-p2p/freenet/files/update-freenet
new file mode 100644
index 000000000000..a04833ab5eeb
--- /dev/null
+++ b/net-p2p/freenet/files/update-freenet
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+echo "Upgrading Freenet-server..."
+cd /usr/lib/freenet
+rm -f freenet-latest.jar
+wget http://freenetproject.org/snapshots/freenet-latest.jar && \
+ mv -f freenet-latest.jar freenet.jar && \
+ echo "freenet.jar upgraded."
+
+echo "Updating seednodes..."
+cd /var/freenet
+rm -f seednodes.ref
+wget http://hawk.freenetproject.org/~freenet4/seednodes.ref && \
+ echo "seednodes.ref updated."
+
+echo "Restart Freenet to run the new version."
+