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
|
|
|
|
#=================================================
|
2024-06-24 11:17:11 +02:00
|
|
|
ynh_script_progression --message="Upgrading source files..." --weight=2
|
2021-08-28 16:55:52 +02:00
|
|
|
|
2024-06-24 11:17:11 +02: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
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PHP-FPM CONFIGURATION
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
|
|
|
|
2024-06-24 11:17:11 +02:00
|
|
|
ynh_add_fpm_config
|
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="Upgrade of $app completed" --last
|