Commit 27f751f6 authored by Thomas Balthazar's avatar Thomas Balthazar Committed by GitHub

Merge pull request #2 from Neutrinet/listlists

Add condition check before installing apps lists
parents 08cd4cc1 527cc733
......@@ -72,10 +72,22 @@ renew_cert() {
cd $install_dir
}
install_neutrinet_apps_list() {
if ! sudo yunohost app listlists | grep -q "neutrinet:"; then
sudo yunohost app fetchlist -n neutrinet -u https://neutrinet.be/apps.json
fi
}
install_labriqueinternet_apps_list() {
if ! sudo yunohost app listlists | grep -q "labriqueinternet :"; then
sudo yunohost app fetchlist -n labriqueinternet -u https://labriqueinter.net/apps/labriqueinternet.json
fi
}
sudo yunohost app setting neutrinet version -v "0.2"
sudo yunohost app fetchlist -n neutrinet -u https://neutrinet.be/apps.json
sudo yunohost app fetchlist -n labriqueinternet -u https://labriqueinter.net/apps/labriqueinternet.json
install_neutrinet_apps_list
install_labriqueinternet_apps_list
get_out_of_testing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment