mirror of
https://github.com/YunoHost-Apps/guacamole_ynh.git
synced 2024-09-03 19:16:03 +02:00
cleanup
This commit is contained in:
parent
c9466dce3f
commit
93cbbe1dfc
1 changed files with 16 additions and 16 deletions
|
@ -18,23 +18,23 @@ ynh_script_progression --message="Installing dependencies..." --weight=1
|
||||||
# But installing Tomcat from the Debian repos automatically enables and starts it.
|
# 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
|
# So we stop and disable it, unless Tomcat was already enabled or started by the user beforehand
|
||||||
|
|
||||||
tomcat_enabled=""
|
# tomcat_enabled=""
|
||||||
tomcat_active=""
|
# tomcat_active=""
|
||||||
if [ "$(systemctl cat tomcat9 --quiet)" ]; then
|
# if [ "$(systemctl cat tomcat9 --quiet)" ]; then
|
||||||
if (systemctl is-enabled tomcat9 --quiet); then
|
# if (systemctl is-enabled tomcat9 --quiet); then
|
||||||
tomcat_enabled=1
|
# tomcat_enabled=1
|
||||||
fi
|
# fi
|
||||||
if (systemctl is-active tomcat9 --quiet); then
|
# if (systemctl is-active tomcat9 --quiet); then
|
||||||
tomcat_active=1
|
# tomcat_active=1
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
if [ ! $tomcat_enabled ]; then
|
# if [ ! $tomcat_enabled ]; then
|
||||||
systemctl disable tomcat9 --quiet
|
# systemctl disable tomcat9 --quiet
|
||||||
fi
|
# fi
|
||||||
if [ ! $tomcat_active ]; then
|
# if [ ! $tomcat_active ]; then
|
||||||
systemctl stop tomcat9 --quiet
|
# systemctl stop tomcat9 --quiet
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USERS
|
# CREATE DEDICATED USERS
|
||||||
|
|
Loading…
Add table
Reference in a new issue