From 93cbbe1dfcc68366f0028252265b45bb46a5839a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 24 Feb 2024 15:23:07 +0100 Subject: [PATCH] cleanup --- scripts/install | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/scripts/install b/scripts/install index 4dcf6f6..dd921f6 100755 --- a/scripts/install +++ b/scripts/install @@ -18,23 +18,23 @@ ynh_script_progression --message="Installing dependencies..." --weight=1 # But installing Tomcat from the Debian repos automatically enables and starts it. # So we stop and disable it, unless Tomcat was already enabled or started by the user beforehand -tomcat_enabled="" -tomcat_active="" -if [ "$(systemctl cat tomcat9 --quiet)" ]; then - if (systemctl is-enabled tomcat9 --quiet); then - tomcat_enabled=1 - fi - if (systemctl is-active tomcat9 --quiet); then - tomcat_active=1 - fi -fi +# tomcat_enabled="" +# tomcat_active="" +# if [ "$(systemctl cat tomcat9 --quiet)" ]; then +# if (systemctl is-enabled tomcat9 --quiet); then +# tomcat_enabled=1 +# fi +# if (systemctl is-active tomcat9 --quiet); then +# tomcat_active=1 +# fi +# fi -if [ ! $tomcat_enabled ]; then - systemctl disable tomcat9 --quiet -fi -if [ ! $tomcat_active ]; then - systemctl stop tomcat9 --quiet -fi +# if [ ! $tomcat_enabled ]; then +# systemctl disable tomcat9 --quiet +# fi +# if [ ! $tomcat_active ]; then +# systemctl stop tomcat9 --quiet +# fi #================================================= # CREATE DEDICATED USERS