Skip to content

Instantly share code, notes, and snippets.

@Thynix
Created May 12, 2018 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thynix/8d6f1ff2526dc83d25184d8dfb48bb6b to your computer and use it in GitHub Desktop.
Save Thynix/8d6f1ff2526dc83d25184d8dfb48bb6b to your computer and use it in GitHub Desktop.
Freenet update key transition test
#!/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:"
@Thynix
Copy link
Author

Thynix commented May 12, 2018

Expected behavior (when freenet.ini-stock sets the update URI to the previous URI) is for the URI to be:

previous
legacy

legacy
modern

previous
modern

@Thynix
Copy link
Author

Thynix commented Jun 16, 2018

This is part of testing hyphanet/fred#632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment