From 3fc8dd78bcac5ae1b6ce8aa0e14c13d4ca94e972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 5 Feb 2024 14:45:27 +0100 Subject: [PATCH] woops --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8a28ccb..ee40216 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,10 +18,6 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" -# Set permissions to app files -chmod +x "$install_dir/grammalecte-server.py" -chown -R "$app:www-data" "$install_dir" - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -30,6 +26,10 @@ 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="$install_dir" --full_replace=1 +# Set permissions to app files +chmod +x "$install_dir/grammalecte-server.py" +chown -R "$app:www-data" "$install_dir" + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================