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

fix data path var

This commit is contained in:
Éric Gaspar 2023-03-03 19:00:59 +01:00
parent a65bd03aae
commit 1c6333a9d9
4 changed files with 4 additions and 15 deletions

View file

@ -198,7 +198,7 @@
"MaxImageResolution": 33177600, "MaxImageResolution": 33177600,
"MaxImageDecoderConcurrency": -1, "MaxImageDecoderConcurrency": -1,
"DriverName": "local", "DriverName": "local",
"Directory": "__DATA_PATH__", "Directory": "__DATA_DIR__",
"EnablePublicLink": false, "EnablePublicLink": false,
"ExtractContent": false, "ExtractContent": false,
"ArchiveRecursion": false, "ArchiveRecursion": false,

View file

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Mattermost Description=Mattermost: collaboration platform
After=network.target After=network.target
Requires=postgresql.service Requires=postgresql.service

View file

@ -68,26 +68,16 @@ url=https://$domain$path
ynh_add_config --template="../conf/config.json" --destination="$install_dir/config/config.json" ynh_add_config --template="../conf/config.json" --destination="$install_dir/config/config.json"
#================================================= #=================================================
# NGINX CONFIGURATION # SYSTEM CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=2 ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=2
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Collaboration platform built for developers" --log="/var/log/$app/$app.log" yunohost service add $app --description="Collaboration platform built for developers" --log="/var/log/$app/$app.log"
#================================================= #=================================================

View file

@ -91,7 +91,6 @@ then
ynh_secure_remove --file="$tmpdir" ynh_secure_remove --file="$tmpdir"
fi fi
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"