Fix SSH choice and image build safeguards

This commit is contained in:
Storm Dragon
2026-07-17 00:12:40 -04:00
parent da26909527
commit b2d6cdc25d
4 changed files with 42 additions and 6 deletions
@@ -1786,7 +1786,6 @@ systemctl enable NetworkManager.service
systemctl enable brltty.path
systemctl enable fenrirscreenreader.service
systemctl enable cronie.service
systemctl enable ssh-login-monitor.service
# Enable bluetooth if present
if ! systemctl enable bluetooth.service; then
@@ -1795,8 +1794,12 @@ fi
# Enable SSH if requested
if [[ "${enableSsh}" == "yes" ]]; then
systemctl enable sshd.service
systemctl enable sshd.service ssh-login-monitor.service
echo "SSH server enabled"
else
systemctl disable sshd.service ssh-login-monitor.service
systemctl disable sshd.socket 2> /dev/null || true
echo "SSH server disabled"
fi
# Setup desktop environment configurations