From 1e82098f7ce46d1557ead53a8831fe178377a5b8 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 27 Mar 2026 15:03:27 +0100 Subject: [PATCH] fix(labca): remove blocking -init call and system user The labca-gui -init flag does not exit after initialization - it starts the HTTP server and blocks forever, causing the install to hang. Removed the -init call; the service handles first-run setup via the browser /setup route automatically. Also removed system user (runs as root in LXC). --- install/labca-install.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/install/labca-install.sh b/install/labca-install.sh index abd04018..acce8cdd 100644 --- a/install/labca-install.sh +++ b/install/labca-install.sh @@ -15,15 +15,9 @@ update_os fetch_and_deploy_gh_release "labca-gui" "hakwerk/labca" "binary" -msg_info "Configuring LabCA" mkdir -p /etc/labca -$STD labca-gui -config /etc/labca/config.json -port 3000 -init -msg_ok "Configured LabCA" msg_info "Creating Service" -useradd --system --home /etc/labca --shell /bin/false labca -chown -R labca:labca /etc/labca - cat </etc/systemd/system/labca.service [Unit] Description=LabCA GUI Service @@ -34,10 +28,8 @@ StartLimitBurst=3 [Service] Type=simple -User=labca -Group=labca WorkingDirectory=/etc/labca -ExecStart=/usr/bin/labca-gui -config /etc/labca/config.json +ExecStart=/usr/bin/labca-gui -config /etc/labca/config.json -port 3000 Restart=on-failure RestartSec=5