2021-08-28 16:55:52 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Setting up source files..." --weight=3
|
|
|
|
|
2023-12-20 18:57:31 +01:00
|
|
|
ynh_setup_source --dest_dir="$install_dir"
|
2021-08-28 16:55:52 +02:00
|
|
|
|
2023-03-12 18:04:32 +01:00
|
|
|
chmod -R o-rwx "$install_dir"
|
|
|
|
chown -R $app:www-data "$install_dir"
|
2021-08-28 16:55:52 +02:00
|
|
|
|
|
|
|
#=================================================
|
2023-01-21 09:52:18 +01:00
|
|
|
# PHP-FPM CONFIGURATION
|
2021-08-28 16:55:52 +02:00
|
|
|
#=================================================
|
2023-01-21 09:52:18 +01:00
|
|
|
ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
|
2021-08-28 16:55:52 +02:00
|
|
|
|
2024-06-24 11:17:11 +02:00
|
|
|
ynh_add_fpm_config
|
2021-08-28 16:55:52 +02:00
|
|
|
|
2023-01-21 09:52:18 +01:00
|
|
|
ynh_add_nginx_config
|
2021-08-28 16:55:52 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Installation of $app completed" --last
|