ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
Set needrestart to non-interactive mode in install.sh
Juan Denis8cff8f98aef5
diff --git a/.gitignore b/.gitignoreindex 8c0379fd..967714db 100644--- a/.gitignore+++ b/.gitignore@@ -7,4 +7,5 @@ nul*.tmp.planning_old.mcp.json-new_templates/\ No newline at end of file+new_templates/+/.marketingdiff --git a/install.sh b/install.shindex 1bd91896..d1683f82 100644--- a/install.sh+++ b/install.sh@@ -60,6 +60,18 @@ fiecho ""print_info "Installing system dependencies..."+# Configure needrestart for non-interactive mode (Ubuntu 22.04+)+# This prevents the "Which services should be restarted?" dialog+# and avoids dpkg lock issues during automated installs+export NEEDRESTART_MODE=a+export DEBIAN_FRONTEND=noninteractive++# Also configure needrestart.conf if it exists for future apt operations+if [ -f /etc/needrestart/needrestart.conf ]; then+ # Set needrestart to auto-restart mode+ sed -i "s/#\$nrconf{restart} = 'i';/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf 2>/dev/null || true+fi+# Update package listapt-get update