mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-07-26 08:27:20 +02:00
install: resolve potential conflict between ssh service and socket
This commit is contained in:
parent
ef1c7d7e0e
commit
8ed93423ee
9
install
9
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user