1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/leed_ynh.git synced 2024-09-03 19:26:32 +02:00

Added Leed Market option

This commit is contained in:
mbugeia 2014-10-20 01:39:33 +02:00
parent 4dcacf04f6
commit f3e9a0b209
2 changed files with 18 additions and 0 deletions

View file

@ -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": {

View file

@ -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" ];