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

38 lines
1.1 KiB
Text
Raw Permalink Normal View History

2015-04-06 17:46:57 +02:00
#!/bin/bash
2017-04-30 15:45:50 +02:00
2020-07-18 20:31:39 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2017-04-30 15:45:50 +02:00
2020-07-18 20:31:39 +02:00
source _common.sh
2017-04-30 15:45:50 +02:00
source /usr/share/yunohost/helpers
2015-04-06 17:46:57 +02:00
2020-07-18 20:31:39 +02:00
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
2020-09-25 15:57:18 +02:00
ynh_script_progression --message="Setting up source files..." --weight=1
2020-07-18 20:31:39 +02:00
# Download, check integrity, uncompress and patch the source from app.src
2024-01-17 11:37:40 +01:00
ynh_setup_source --dest_dir="$install_dir"
2015-04-06 17:46:57 +02:00
2024-01-17 11:37:40 +01:00
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
2020-07-18 20:31:39 +02:00
#=================================================
2024-01-17 11:37:40 +01:00
# SYSTEM CONFIGURATION
2020-07-18 20:31:39 +02:00
#=================================================
2024-01-17 11:37:40 +01:00
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
2017-05-08 17:18:41 +02:00
2021-03-10 22:17:04 +01:00
ynh_add_fpm_config
2022-10-01 08:52:00 +02:00
# Create a dedicated NGINX config
ynh_add_nginx_config
2020-07-18 20:31:39 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2022-10-01 08:52:00 +02:00
ynh_script_progression --message="Installation of $app completed" --last