From 3bb300ce44d7486af660ca84af5a1894bdfa5729 Mon Sep 17 00:00:00 2001 From: Moul Date: Tue, 28 Jun 2016 11:32:13 +0200 Subject: [PATCH] [fix] use env var for is_public var. overwrite when unzip. --- manifest.json | 2 +- scripts/install | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 5fc8f2a..0876be7 100644 --- a/manifest.json +++ b/manifest.json @@ -66,7 +66,7 @@ "example": "super_secret_password" }, { - "name": "public_site", + "name": "is_public", "ask": { "en": "Should this application be public?", "fr": "Est-ce que cette application doit ĂȘtre visible publiquement ?" diff --git a/scripts/install b/scripts/install index 022edba..c9f1270 100644 --- a/scripts/install +++ b/scripts/install @@ -9,7 +9,7 @@ domain=$YNH_APP_ARG_DOMAIN path=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN password=$YNH_APP_ARG_PASSWORD -is_public=$5 +is_public=$YNH_APP_ARG_IS_PUBLIC default_lang=$YNH_APP_ARG_DEFAULT_LANG # Source YunoHost helpers @@ -36,7 +36,7 @@ sudo mkdir -p $src_path # Retrieve sources and install them version=$(cat ../conf/upstream_version) wget -nc --quiet https://github.com/pluxml/PluXml/archive/$version.zip -P /tmp -sudo unzip -q /tmp/$version.zip -d /tmp +sudo unzip -oq /tmp/$version.zip -d /tmp sudo mv /tmp/PluXml-$version/* $src_path # Set permissions