1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/taskboard_ynh.git synced 2024-09-03 20:26:27 +02:00
taskboard_ynh/scripts/upgrade

37 lines
1 KiB
Text
Raw Normal View History

2020-12-12 18:10:50 +01:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
2024-06-24 12:01:59 +02:00
ynh_app_setting_set_default --key=php_upload_max_filesize --value=100M
ynh_app_setting_set_default --key=php_memory_limit --value=256M
2020-12-12 18:10:50 +01:00
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
2024-06-24 12:01:59 +02:00
ynh_script_progression "Upgrading source files..."
2020-12-12 18:10:50 +01:00
2024-06-24 11:28:25 +02:00
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir=$install_dir
2020-12-12 18:10:50 +01:00
2023-04-01 19:16:56 +02:00
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
2021-06-01 21:14:07 +02:00
2020-12-12 18:10:50 +01:00
#=================================================
2023-01-07 07:53:48 +01:00
# PHP-FPM CONFIGURATION
2020-12-12 18:10:50 +01:00
#=================================================
2024-06-24 12:01:59 +02:00
ynh_script_progression "Upgrading PHP-FPM configuration..."
2020-12-12 18:10:50 +01:00
2023-01-07 07:53:48 +01:00
# Create a dedicated PHP-FPM config
2024-06-24 12:01:59 +02:00
ynh_config_add_phpfpm
2020-12-12 18:10:50 +01:00
2023-01-07 07:53:48 +01:00
# Create a dedicated NGINX config
2024-06-24 12:01:59 +02:00
ynh_config_add_nginx
2020-12-12 18:10:50 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2024-06-24 12:01:59 +02:00
ynh_script_progression "Upgrade of $app completed"