1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/outline_ynh.git synced 2024-09-03 19:56:12 +02:00

Update upgrade

This commit is contained in:
Limezy 2023-02-02 01:06:52 +07:00
parent 7cf0816cc7
commit f364b09117

View file

@ -84,16 +84,11 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Cleaning up files..." --weight=1
# Void and recreate final_path
ynh_secure_remove --file="$final_path"
ynh_exec_warn_less mkdir "$final_path"
then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
ynh_setup_source --dest_dir="$final_path" --full_replace=1
fi
chmod 750 "$final_path"