From 5aa7bbcaec4eafc7ae8bd2c8d233c886ea1915be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 29 Sep 2023 13:41:25 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f1d9183..4c356c7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -32,18 +32,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# SPECIFIC UPGRADE -#================================================= -# CREATE DATA DIRECTORY -#================================================= -ynh_script_progression --message="Creating a data directory..." --weight=1 - -chmod -R 764 $data_dir -chmod -R 775 $data_dir/watched -chown -R debian-transmission:www-data "$data_dir" -chown -R debian-transmission: $data_dir/{progress,watched} - #================================================= # UPDATE A CONFIG FILE #================================================= @@ -104,6 +92,16 @@ fi ynh_replace_string "
$" "" /usr/share/transmission/web/index.html +#================================================= +# SET DATA DIRECTORY PERMISSIONS +#================================================= +ynh_script_progression --message="Set data directory permissions..." --weight=1 + +chmod -R 764 $data_dir +chmod -R 775 $data_dir/watched +chown -R debian-transmission:www-data "$data_dir" +chown -R debian-transmission: $data_dir/{progress,watched} + #================================================= # GENERIC FINALIZATION #=================================================