Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

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

This comment has been minimized.

Copy link
Owner Author

commented Jun 16, 2018

This is part of testing freenet/fred#632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.