From 17618e6f1574263edc2e7b69e57da4cb9c5cb18b Mon Sep 17 00:00:00 2001 From: polytan02 Date: Tue, 17 Jan 2017 19:08:23 +0000 Subject: [PATCH] Use of global values --- scripts/install | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 0daa027..7f06d60 100644 --- a/scripts/install +++ b/scripts/install @@ -7,14 +7,14 @@ set -eu source /usr/share/yunohost/helpers # retrieve arguments -app=bozon -domain=$1 -path=$2 -is_public=$3 -language=$4 -filesize=$5 -admin=$6 -password=$7 +app=$YNH_APP_INSTANCE_NAME +domain=$YNH_APP_ARG_DOMAIN +path=$YNH_APP_ARG_PATH +is_public=$YNH_APP_ARG_IS_PUBLIC +language=$YNH_APP_ARG_IS_LANGUAGE +filesize=$YNH_APP_ARG_IS_FILESIZE +admin=$YNH_APP_ARG_IS_ADMIN +password=$YNH_APP_ARG_IS_PASSWORD # chech if / is present at start and not at end