From 8ed93423ee2e6667b08a61f1b1b7e508dfdfb1b1 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 19 Jul 2025 19:05:21 +0300 Subject: [PATCH] install: resolve potential conflict between ssh service and socket --- install | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install b/install index 661f969a..512dae04 100755 --- a/install +++ b/install @@ -202,6 +202,15 @@ if [ "$(id -u)" == "0" ]; then (systemctl enable --now avahi-daemon.socket &) (systemctl enable --now systemd-oomd.socket &) (systemctl enable --now oidentd.socket &) + + # sshd is critical and I don't want it to fail due to the service holding the listener + if [ -f /etc/systemd/system/sockets.target.wants/ssh.socket ]; then + (systemctl disable --now ssh.service &) + (systemctl enable --now ssh.socket &) + elif [ -f /etc/systemd/system/sockets.target.wants/sshd.socket ]; then + (systemctl disable --now sshd.service &) + (systemctl enable --now sshd.socket &) + fi fi # Enables laziness on checking whether or not apt is installed