1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

install: use the $YNH_APP_INSTANCE_NAME variable

This commit is contained in:
Pierre de La Morinerie 2017-09-12 17:31:45 +05:30
parent ee502444c6
commit 51b8880157

View file

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