Update tabs/system-setup/5-samba-ssh-setup.sh

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
Guru Swarupa 2024-09-18 21:58:56 +05:30 committed by GitHub
parent 1d59a555bf
commit 1b0b9bbf12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,16 +25,20 @@ setup_ssh() {
printf "%b\n" "${YELLOW}Setting up SSH...${RC}"
# Detect package manager and install appropriate SSH package
if [ "$PACKAGER" = "apt-get" ]; then
case "$PACKAGER" in
"apt-get")
install_package openssh-server
SSH_SERVICE="ssh"
elif [ "$PACKAGER" = "pacman" ]; then
;;
"pacman")
install_package openssh
SSH_SERVICE="sshd"
else
;;
*)
install_package openssh-server
SSH_SERVICE="sshd"
fi
;;
esac
# Enable and start the appropriate SSH service
$ESCALATION_TOOL systemctl enable "$SSH_SERVICE"