2021-03-19 19:47:11 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
|
#=================================================
|
|
|
|
|
2024-01-22 17:32:44 +01:00
|
|
|
ynh_script_progression --message="Upgrading source files..."
|
2021-03-19 19:47:11 +01:00
|
|
|
|
2024-01-22 17:32:44 +01:00
|
|
|
# Download, check integrity, uncompress and patch the source from app.src
|
|
|
|
ynh_setup_source --dest_dir="$install_dir" --keep="/data"
|
2021-03-19 19:47:11 +01:00
|
|
|
|
2023-11-25 15:13:16 +01:00
|
|
|
chmod -R o-rwx "$install_dir"
|
2024-01-22 17:32:44 +01:00
|
|
|
chown -R $custom_webapp_id:www-data "$install_dir"
|
2022-03-27 00:20:46 +01:00
|
|
|
|
2021-03-19 19:47:11 +01:00
|
|
|
#=================================================
|
|
|
|
# GENERIC FINALIZATION
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2022-03-24 21:01:11 +01:00
|
|
|
ynh_script_progression --message="Upgrade of $app completed"
|