mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +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}"
|
printf "%b\n" "${YELLOW}Setting up SSH...${RC}"
|
||||||
|
|
||||||
# Detect package manager and install appropriate SSH package
|
# Detect package manager and install appropriate SSH package
|
||||||
if [ "$PACKAGER" = "apt-get" ]; then
|
case "$PACKAGER" in
|
||||||
|
"apt-get")
|
||||||
install_package openssh-server
|
install_package openssh-server
|
||||||
SSH_SERVICE="ssh"
|
SSH_SERVICE="ssh"
|
||||||
elif [ "$PACKAGER" = "pacman" ]; then
|
;;
|
||||||
|
"pacman")
|
||||||
install_package openssh
|
install_package openssh
|
||||||
SSH_SERVICE="sshd"
|
SSH_SERVICE="sshd"
|
||||||
else
|
;;
|
||||||
|
*)
|
||||||
install_package openssh-server
|
install_package openssh-server
|
||||||
SSH_SERVICE="sshd"
|
SSH_SERVICE="sshd"
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Enable and start the appropriate SSH service
|
# Enable and start the appropriate SSH service
|
||||||
$ESCALATION_TOOL systemctl enable "$SSH_SERVICE"
|
$ESCALATION_TOOL systemctl enable "$SSH_SERVICE"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user