mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
install: use app.src
This commit is contained in:
parent
2a2c6ffd8d
commit
bede450e88
1 changed files with 2 additions and 8 deletions
|
@ -72,8 +72,6 @@ root_path="$(pwd)/.."
|
|||
final_path="/var/www/$app"
|
||||
data_path="/home/yunohost.app/$app"
|
||||
logs_path="/var/log/$app"
|
||||
version=$(cat "$root_path/VERSION")
|
||||
archive_filename="mattermost-$version.tar.gz"
|
||||
|
||||
#=================================================
|
||||
# CREATE A MYSQL DATABASE
|
||||
|
@ -97,16 +95,12 @@ ynh_app_setting_set mattermost smtppwd "$smtp_password"
|
|||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
||||
archive_url="https://releases.mattermost.com/${version}/mattermost-team-${version}-linux-amd64.tar.gz"
|
||||
ynh_app_setting_set "$app" final_path "$final_path"
|
||||
ynh_setup_source "$final_path"
|
||||
|
||||
sudo mkdir -p "$final_path"
|
||||
sudo mkdir -p "$data_path"
|
||||
sudo mkdir -p "$logs_path"
|
||||
|
||||
sudo wget --quiet --output-document "$archive_filename" "$archive_url"
|
||||
sudo tar -xvz --file "$archive_filename" --directory "$final_path" --strip-components 1
|
||||
sudo rm -f "$archive_filename"
|
||||
|
||||
#=================================================
|
||||
# EDIT MATTERMOST CONFIG
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue