1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_facebook_ynh.git synced 2024-09-03 19:36:33 +02:00

Fix based on linter advices

This commit is contained in:
nathanael-h 2021-12-01 18:35:01 +01:00
parent 40a003d0ed
commit 3137afba12
3 changed files with 1 additions and 6 deletions

View file

@ -74,7 +74,7 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde
#================================================= #=================================================
# FIND AND OPEN A PORT # 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. # 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) 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 ### Then, if write authorization is needed, any access should be given only to directories
### that really need such authorization. ### that really need such authorization.
# Set permissions to app files
chown -R root: $final_path
# WARNING : theses command are used in INSTALL, UPGRADE, RESTORE # WARNING : theses command are used in INSTALL, UPGRADE, RESTORE
# For any update do it in all files # For any update do it in all files
chown $mautrix_bridge_user:root -R $final_path chown $mautrix_bridge_user:root -R $final_path

View file

@ -81,7 +81,6 @@ ynh_system_user_create --username=$mautrix_bridge_user
#================================================= #=================================================
# Restore permissions on app files # Restore permissions on app files
chown -R root: $final_path
chown $mautrix_bridge_user:root -R $final_path chown $mautrix_bridge_user:root -R $final_path
#================================================= #=================================================

View file

@ -190,7 +190,6 @@ $final_path/bin/python3 -m mautrix_facebook -g -c $mautrix_config_path -r $app_s
#================================================= #=================================================
# Set permissions on app files # Set permissions on app files
chown -R root: $final_path
chown $mautrix_bridge_user:root -R $final_path chown $mautrix_bridge_user:root -R $final_path
#================================================= #=================================================
# SETUP LOGROTATE # SETUP LOGROTATE