1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pluxml_ynh.git synced 2024-09-03 20:16:02 +02:00

[fix] use env var for is_public var. overwrite when unzip.

This commit is contained in:
Moul 2016-06-28 11:32:13 +02:00
parent 2601970896
commit 3bb300ce44
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@
"example": "super_secret_password" "example": "super_secret_password"
}, },
{ {
"name": "public_site", "name": "is_public",
"ask": { "ask": {
"en": "Should this application be public?", "en": "Should this application be public?",
"fr": "Est-ce que cette application doit être visible publiquement ?" "fr": "Est-ce que cette application doit être visible publiquement ?"

View file

@ -9,7 +9,7 @@ domain=$YNH_APP_ARG_DOMAIN
path=$YNH_APP_ARG_PATH path=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN admin=$YNH_APP_ARG_ADMIN
password=$YNH_APP_ARG_PASSWORD password=$YNH_APP_ARG_PASSWORD
is_public=$5 is_public=$YNH_APP_ARG_IS_PUBLIC
default_lang=$YNH_APP_ARG_DEFAULT_LANG default_lang=$YNH_APP_ARG_DEFAULT_LANG
# Source YunoHost helpers # Source YunoHost helpers
@ -36,7 +36,7 @@ sudo mkdir -p $src_path
# Retrieve sources and install them # Retrieve sources and install them
version=$(cat ../conf/upstream_version) version=$(cat ../conf/upstream_version)
wget -nc --quiet https://github.com/pluxml/PluXml/archive/$version.zip -P /tmp 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 sudo mv /tmp/PluXml-$version/* $src_path
# Set permissions # Set permissions