1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adminer_ynh.git synced 2024-09-03 18:06:06 +02:00
adminer_ynh/scripts/upgrade

38 lines
1.1 KiB
Text
Raw Normal View History

2014-05-08 19:46:08 +02:00
#!/bin/bash
2018-06-27 17:21:59 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2018-06-27 17:21:59 +02:00
source _common.sh
source /usr/share/yunohost/helpers
2021-07-04 16:03:50 +02:00
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
2024-08-29 09:58:09 +02:00
ynh_script_progression --message="Upgrading source files..." --weight=1
2020-10-12 20:47:58 +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" --full_replace=1
2014-05-08 19:46:08 +02:00
2024-08-29 09:58:09 +02:00
chown -R "$app:www-data" "$install_dir"
2021-11-14 18:15:12 +01:00
2018-06-27 17:21:59 +02:00
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
2020-10-12 20:47:58 +02:00
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
2021-12-11 15:17:42 +01:00
# Create a dedicated PHP-FPM config
2024-06-02 11:54:49 +02:00
ynh_add_fpm_config
2018-06-27 17:21:59 +02:00
# Create a dedicated NGINX config
ynh_add_nginx_config
2020-04-26 00:47:07 +02:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Upgrade of $app completed" --last