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:
parent
ee502444c6
commit
51b8880157
1 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue