2014-05-08 19:46:08 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-06-27 17:21:59 +02:00
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
2014-05-08 19:46:08 +02:00
|
|
|
|
2018-06-27 17:21:59 +02:00
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2020-04-26 00:47:07 +02:00
|
|
|
#=================================================
|
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
|
#=================================================
|
2020-10-12 20:47:58 +02:00
|
|
|
ynh_script_progression --message="Setting up source files..." --weight=11
|
2020-04-26 00:47:07 +02:00
|
|
|
|
2024-08-29 09:58:09 +02:00
|
|
|
#=================================================
|
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Setting up source files..." --weight=1
|
2018-06-27 17:21:59 +02:00
|
|
|
|
2024-08-29 09:58:09 +02:00
|
|
|
# Download, check integrity, uncompress and patch the source from manifest.toml
|
|
|
|
ynh_setup_source --dest_dir="$install_dir"
|
2014-07-22 16:08:09 +02:00
|
|
|
|
2024-08-29 09:58:09 +02:00
|
|
|
chown -R "$app:www-data" "$install_dir"
|
2018-06-27 17:21:59 +02:00
|
|
|
|
|
|
|
#=================================================
|
2024-08-29 10:04:19 +02:00
|
|
|
# SYSTEM CONFIGURATION
|
2018-06-27 17:21:59 +02:00
|
|
|
#=================================================
|
2024-08-29 10:04:19 +02:00
|
|
|
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
2017-06-25 00:56:50 +02:00
|
|
|
|
2018-06-27 17:21:59 +02:00
|
|
|
# Create a dedicated php-fpm config
|
2024-06-02 11:54:49 +02:00
|
|
|
ynh_add_fpm_config
|
2022-10-16 20:24:22 +02:00
|
|
|
|
|
|
|
# Create a dedicated nginx config
|
|
|
|
ynh_add_nginx_config
|
2018-06-27 17:21:59 +02:00
|
|
|
|
2020-10-12 20:47:58 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2021-07-10 12:49:55 +02:00
|
|
|
ynh_script_progression --message="Installation of $app completed" --last
|