diff --git a/scripts/upgrade b/scripts/upgrade index bb36bd38dc782b697a50d1e74354a3dc26e0b555..e8c6886eda7c18dd817e566f41921c2b15e26f94 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1 +1,14 @@ -echo "Nothing to do to upgrade" +set -e + +source ./commons + +version=$(sudo yunohost app setting neutrinet version) + +# 0.1 -> 0.1.1 +if [[ "$version" == "0.1" ]]; then + + get_out_of_testing + + sudo yunohost app setting neutrinet version -v "0.1.1" + version="0.1.1" +fi