From 54c9cf23d53841907c0f2ef4ff553579d0ac4bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 22 Jun 2024 17:46:06 +0200 Subject: [PATCH] Fix linter and shell check --- scripts/remove | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/scripts/remove b/scripts/remove index f9f8cfc..e22e9a5 100755 --- a/scripts/remove +++ b/scripts/remove @@ -17,30 +17,25 @@ source /usr/share/yunohost/helpers #================================================= # Remove a service from the admin panel, added by `yunohost service add` -yunohost service remove $app -yunohost service remove $app-coturn +yunohost service remove "$app" +yunohost service remove "$app"-coturn #================================================= # STOP AND REMOVE SERVICE #================================================= ynh_script_progression --message="Stopping and removing the systemd service" --weight=2 -ynh_remove_systemd_config --service=$app -ynh_remove_systemd_config --service=$app-coturn +ynh_remove_systemd_config --service="$app" +ynh_remove_systemd_config --service="$app"-coturn #================================================= # REMOVE APP MAIN DIR #================================================= ynh_script_progression --message="Removing app main directory" --weight=2 -ynh_secure_remove --file=$code_dir -ynh_secure_remove --file=/etc/matrix-$app -ynh_secure_remove --file=/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf - -if [ "$YNH_APP_PURGE" -eq 1 ]; then - ynh_script_progression --message="Removing logs..." - ynh_secure_remove --file=/var/log/matrix-"$app" -fi +ynh_secure_remove --file="$code_dir" +ynh_secure_remove --file=/etc/matrix-"$app" +ynh_secure_remove --file="/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf" #================================================= # REMOVE NGINX CONFIGURATION