keycloak: remove invalid ExecStop, kc.sh has no stop subcommand

This commit is contained in:
MickLesk
2026-08-16 20:39:34 +02:00
parent 4255711f06
commit d1fb7befdc
2 changed files with 8 additions and 1 deletions
+8
View File
@@ -28,6 +28,14 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
if grep -q '^ExecStop=/opt/keycloak/bin/kc.sh stop$' /etc/systemd/system/keycloak.service 2>/dev/null; then
msg_info "Correcting Service"
sed -i '/^ExecStop=\/opt\/keycloak\/bin\/kc.sh stop$/d' /etc/systemd/system/keycloak.service
systemctl daemon-reload
msg_ok "Corrected Service"
fi
if check_for_gh_release "keycloak_app" "keycloak/keycloak"; then
msg_info "Stopping Service"
systemctl stop keycloak
-1
View File
@@ -39,7 +39,6 @@ Type=idle
User=root
WorkingDirectory=/opt/keycloak
ExecStart=/opt/keycloak/bin/kc.sh start
ExecStop=/opt/keycloak/bin/kc.sh stop
Restart=always
RestartSec=3
Environment="JAVA_HOME=/usr/lib/jvm/temurin-21-jdk-$(arch_resolve)"