From daa5a67fef3f506675fe59111950d840328aacd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 5 Feb 2024 14:30:09 +0100 Subject: [PATCH] fix permission --- scripts/install | 4 ++-- scripts/remove | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index 17786a5..78c62e8 100644 --- a/scripts/install +++ b/scripts/install @@ -23,11 +23,11 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="config.conf" --destination="$install_dir/config.conf" chmod 400 "$install_dir/config.conf" -chown root: "$install_dir/config.conf" ynh_add_config --template="client.json" --destination="$install_dir/www/static/client.json" chmod 400 "$install_dir/www/static/client.json" -chown root: "$install_dir/www/static/client.json" + +chown -R "$app:www-data" "$install_dir" #================================================= # SYSTEM CONFIGURATION diff --git a/scripts/remove b/scripts/remove index 0707233..d1a8d31 100644 --- a/scripts/remove +++ b/scripts/remove @@ -25,21 +25,11 @@ ynh_remove_systemd_config # Remove the dedicated nginx config ynh_remove_nginx_config -#================================================= -# REMOVE APP MAIN DIR -#================================================= -ynh_script_progression --message="Removing Kiwiirc..." --weight=6 - -dpkg --purge kiwiirc - #================================================= # REMOVE VARIOUS FILES #================================================= ynh_script_progression --message="Removing various files..." --weight=1 -# Remove a cron file -ynh_secure_remove --file="/etc/$app" - # Remove the log files ynh_secure_remove --file="/var/log/$app.log"