From 51b88801571bab385579b7d243a4a4ef9e15afd4 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 12 Sep 2017 17:31:45 +0530 Subject: [PATCH] install: use the $YNH_APP_INSTANCE_NAME variable --- scripts/install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 4d7d5d7..37c6b72 100644 --- a/scripts/install +++ b/scripts/install @@ -1,6 +1,7 @@ #!/bin/bash # Retrieve arguments +app=$YNH_APP_INSTANCE_NAME domain=$YNH_APP_ARG_DOMAIN is_public=$YNH_APP_ARG_PUBLIC_SITE analytics=$YNH_APP_ARG_ANALYTICS @@ -14,8 +15,8 @@ ynh_abort_if_errors # Set up common variables root_path="$(pwd)/.." -final_path=/var/www/mattermost -data_path=/home/yunohost.app/mattermost +final_path=/var/www/$app +data_path=/home/yunohost.app/$app version=$(cat "$root_path/VERSION") archive_filename="mattermost-$version.tar.gz"