diff --git a/manifest.json b/manifest.json index 70b1079..a4efd6f 100644 --- a/manifest.json +++ b/manifest.json @@ -56,6 +56,15 @@ "choices" : ["en", "fr", "es"], "default" : "en" }, + { + "name": "market", + "ask": { + "en": "Do you want to activate the Leed Market?", + "fr": "Voulez-vous activer le Leed Market ?" + }, + "choices": ["Yes", "No"], + "default": "No" + }, { "name": "is_public", "ask": { diff --git a/scripts/install b/scripts/install index 5ab7380..e4be755 100644 --- a/scripts/install +++ b/scripts/install @@ -85,6 +85,15 @@ sed -i "s@__PATH__@$path@g" ../conf/cron_leed sed -i "s@__CODESYNC__@$code_sync@g" ../conf/cron_leed sudo cp ../conf/cron_leed /etc/cron.d/leed +# Activate Leed Market if necessary +sudo yunohost app setting leed market -v "$market" +if [ "$market" = "Yes" ]; +then + rm -R $final_path/plugins + git clone https://github.com/ldleman/Leed-market.git $final_path/plugins + sudo chown -R www-data: $final_path/plugins +fi + # Make app private if necessary sudo yunohost app setting leed is_public -v "$is_public" if [ "$is_public" = "No" ];