Separate UCE builds from service startup

This commit is contained in:
root
2026-07-17 02:11:13 +00:00
parent b0d475e777
commit c9f43d8279
2 changed files with 7 additions and 2 deletions
+7 -1
View File
@@ -52,7 +52,13 @@ case "$action" in
install_unit
systemctl enable "$UNIT_NAME"
;;
start|stop|restart|status)
restart)
if [[ "$REPO_ROOT" != "/usr/lib/uce" && "$REPO_ROOT" != "/opt/uce" ]]; then
"$REPO_ROOT/scripts/build_linux.sh"
fi
systemctl restart "$UNIT_NAME"
;;
start|stop|status)
systemctl "$action" "$UNIT_NAME"
;;
logs)