1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/guacamole_ynh.git synced 2024-09-03 19:16:03 +02:00

add back tomcat dep

This commit is contained in:
Salamandar 2024-02-24 15:42:05 +01:00
parent 93cbbe1dfc
commit 3453d83792
2 changed files with 17 additions and 17 deletions

View file

@ -119,7 +119,7 @@ ram.runtime = "50M"
"libssl-dev",
"libvorbis-dev",
"libwebp-dev",
# "tomcat9",
"tomcat9",
]
[resources.database]

View file

@ -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