Created
May 12, 2018 15:35
-
-
Save Thynix/8d6f1ff2526dc83d25184d8dfb48bb6b to your computer and use it in GitHub Desktop.
Freenet update key transition test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function getURI() { | |
grep node.updater.URI freenet.ini | |
} | |
function restoreConfig() { | |
cp freenet.ini-stock freenet.ini | |
} | |
function run() { | |
getURI | |
./run.sh console | |
echo "$1" | |
getURI | |
} | |
function useJava() { | |
sudo archlinux-java set $1 | |
java -version | |
} | |
useJava java-7-openjdk | |
restoreConfig | |
run "After Java 7:" | |
useJava java-8-openjdk | |
run "Java 8 after Java 7 run:" | |
restoreConfig | |
useJava java-8-openjdk | |
run "Java 8 run:" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior (when
freenet.ini-stock
sets the update URI to the previous URI) is for the URI to be: