From edd10089c6f4889c86fa2f418e8eb6e8d209553b Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 15 Apr 2020 19:08:00 +0200 Subject: [PATCH] [enh] better handling of registration file --- scripts/install | 2 +- scripts/remove | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index b87b071..7e911e8 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/remove b/scripts/remove index 3ff54fc..3f147ca 100755 --- a/scripts/remove +++ b/scripts/remove @@ -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 #=================================================