diff --git a/scripts/upgrade b/scripts/upgrade index d70a8ab..b3070f0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -61,7 +61,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # 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 chmod 750 "$final_path" @@ -98,7 +98,11 @@ ynh_add_nginx_config #================================================= 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