From 3137afba12ddcf75743a4bcf142e8325524366aa Mon Sep 17 00:00:00 2001 From: nathanael-h Date: Wed, 1 Dec 2021 18:35:01 +0100 Subject: [PATCH] Fix based on linter advices --- scripts/install | 5 +---- scripts/restore | 1 - scripts/upgrade | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 2ffdcf9..63c815a 100755 --- a/scripts/install +++ b/scripts/install @@ -74,7 +74,7 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde #================================================= # FIND AND OPEN A PORT #================================================= -ynh_script_progression --message="Configuring firewall..." --weight=1 +ynh_script_progression --message="Configuring bridge port..." --weight=1 # Find a free port for communication between your local synapse instance (home server) and its app service mautrix_bridge. port=$(ynh_find_port --port=8449) @@ -222,9 +222,6 @@ ynh_store_file_checksum --file="$mautrix_config_path" ### Then, if write authorization is needed, any access should be given only to directories ### that really need such authorization. -# Set permissions to app files -chown -R root: $final_path - # WARNING : theses command are used in INSTALL, UPGRADE, RESTORE # For any update do it in all files chown $mautrix_bridge_user:root -R $final_path diff --git a/scripts/restore b/scripts/restore index ec4c278..ca83d90 100755 --- a/scripts/restore +++ b/scripts/restore @@ -81,7 +81,6 @@ ynh_system_user_create --username=$mautrix_bridge_user #================================================= # Restore permissions on app files -chown -R root: $final_path chown $mautrix_bridge_user:root -R $final_path #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a499993..7fbfa21 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -190,7 +190,6 @@ $final_path/bin/python3 -m mautrix_facebook -g -c $mautrix_config_path -r $app_s #================================================= # Set permissions on app files -chown -R root: $final_path chown $mautrix_bridge_user:root -R $final_path #================================================= # SETUP LOGROTATE