From 3fde27f83b00948a7fda3524fd384ff2ec42d5fe Mon Sep 17 00:00:00 2001 From: kekskurse Date: Fri, 21 Jul 2023 16:11:16 +0200 Subject: [PATCH] stuff --- scripts/postinstall.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 2291f21..2b0d41f 100644 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -5,4 +5,8 @@ else fi systemctl daemon-reload -systemctl is-active --quiet http-server-status && systemctl restart http-server-status && echo "Restart Service" +STATUS="$(systemctl is-active tomcat.service)" +if [ "${STATUS}" = "active" ]; then + systemctl restart http-server-status + echo "Restart Service" +fi