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