phanpy_ynh/upgrade

33 lines
1,013 B
Text
Raw Normal View History

2024-11-09 17:37:18 +01:00
#!/bin/bash
### App file generated with YoloGen, the YunoHost app generator, version .
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Upgrading source files..."
ynh_setup_source --dest_dir="$install_dir" --full_replace --keep=""
chown -R $app:www-data "$install_dir"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression "Upgrading system configurations related to $app..."
ynh_config_add_nginx
ynh_config_add_logrotate
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Upgrade of $app completed"