1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/getsimple_ynh.git synced 2024-09-03 18:36:25 +02:00

Update upgrade

This commit is contained in:
yalh76 2022-07-28 14:34:29 +02:00
parent 89e7b0f435
commit 7864b9a68a

View file

@ -61,7 +61,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=5 ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src # 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" --keep="gsconfig.php data/ backups/"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"
@ -98,7 +98,11 @@ ynh_add_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Updating a configuration file..." ynh_script_progression --message="Updating a configuration file..."
ynh_add_config --template="../conf/temp.gsconfig.php" --destination="$final_path/temp.gsconfig.php" ynh_add_config --template="../conf/temp.gsconfig.php" --destination="$final_path/gsconfig.php"
chmod 400 "$final_path/gsconfig.php"
chown $app:$app "$final_path/gsconfig.php"
ynh_local_curl "/admin/support.php" "updated=2"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION