From 9a4cea29f7f54fec922e7fc33a983b1571f63d16 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Sun, 16 Feb 2025 10:45:58 +0100 Subject: [PATCH] Update install.sh --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index f648bc90..4eb628ab 100644 --- a/install.sh +++ b/install.sh @@ -1020,7 +1020,15 @@ install_packages() { if [ "$PACKAGE_MANAGER" == "apt-get" ]; then + + if [ -f /etc/os-release ] && grep -q "Ubuntu" /etc/os-release; then + packages=("curl" "git" "gnupg" "dbus-user-session" "systemd" "dbus" "systemd-container" "quota" "quotatool" "uidmap" "docker.io" "linux-generic" "default-mysql-client" "jc" "sqlite3" "geoip-bin") + else + # debian has linux-image-amd64 instead of generic + packages=("curl" "git" "gnupg" "dbus-user-session" "systemd" "dbus" "systemd-container" "quota" "quotatool" "uidmap" "docker.io" "linux-image-amd64" "default-mysql-client" "jc" "sqlite3" "geoip-bin") + + fi # https://www.faqforge.com/linux/fixed-ubuntu-apt-get-upgrade-auto-restart-services/ debug_log sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf