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
|
2017-05-08 19:25:22 +02:00
|
|
|
|
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"
|
|
|
|
|
|
|
|
ynh_store_file_checksum --file="$install_dir/conf/setup.ini"
|
2021-07-03 09:14:32 +02:00
|
|
|
|
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
|