mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Update tabs/system-setup/5-samba-ssh-setup.sh
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
parent
1d59a555bf
commit
1b0b9bbf12
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user