mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
[enh] better handling of registration file
This commit is contained in:
parent
fc1cb94e07
commit
edd10089c6
2 changed files with 3 additions and 1 deletions
|
@ -375,7 +375,7 @@ chown $mautrix_whatsapp_user:root -R $final_path
|
|||
#setfacl -R -m user:turnserver:rX /etc/matrix-$app
|
||||
#setfacl -R -m user:turnserver:rwX /var/log/matrix-$app
|
||||
|
||||
chown $app:root /etc/matrix-synapse/$app-registration.yaml
|
||||
chown /etc/matrix-synapse/$app-registration.yaml --reference="/etc/matrix-synapse/homeserver.yaml"
|
||||
chmod u=rwX,g=rX,o= /etc/matrix-synapse/$app-registration.yaml
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -69,6 +69,8 @@ ynh_script_progression --message="Removing app main directory..." --time --weigh
|
|||
# Remove the app directory securely
|
||||
ynh_secure_remove --file="$final_path"
|
||||
|
||||
ynh_secure_remove --file="/etc/matrix-synapse/$app-registration.yaml"
|
||||
|
||||
#=================================================
|
||||
# REMOVE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue