From f46d3137b797c22cd917897544c3effde6eeb0cc Mon Sep 17 00:00:00 2001 From: JEEVITHA KANNAN K S Date: Fri, 20 Sep 2024 22:14:49 +0530 Subject: [PATCH] fix: Add missing nala (#544) * Add missing nala * Update 5-samba-ssh-setup.sh --------- Co-authored-by: Chris Titus --- core/tabs/system-setup/docker-setup.sh | 4 ++-- core/tabs/system-setup/samba-ssh-setup.sh | 4 ++-- core/tabs/utils/encrypt_decrypt_tool.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/tabs/system-setup/docker-setup.sh b/core/tabs/system-setup/docker-setup.sh index 2ba06d9b..b082788b 100755 --- a/core/tabs/system-setup/docker-setup.sh +++ b/core/tabs/system-setup/docker-setup.sh @@ -23,7 +23,7 @@ choose_installation() { install_docker() { printf "%b\n" "${YELLOW}Installing Docker...${RC}" case "$PACKAGER" in - apt-get | yum) + apt-get|nala|yum) curl -fsSL https://get.docker.com | sh ;; zypper) @@ -46,7 +46,7 @@ install_docker() { install_docker_compose() { printf "%b\n" "${YELLOW}Installing Docker Compose...${RC}" case "$PACKAGER" in - apt-get | yum) + apt-get|nala|yum) "$ESCALATION_TOOL" "$PACKAGER" update "$ESCALATION_TOOL" "$PACKAGER" install -y docker-compose-plugin ;; diff --git a/core/tabs/system-setup/samba-ssh-setup.sh b/core/tabs/system-setup/samba-ssh-setup.sh index b7b7dfb9..4989a222 100755 --- a/core/tabs/system-setup/samba-ssh-setup.sh +++ b/core/tabs/system-setup/samba-ssh-setup.sh @@ -26,11 +26,11 @@ setup_ssh() { # Detect package manager and install appropriate SSH package case "$PACKAGER" in - "apt-get") + apt-get|nala) install_package openssh-server SSH_SERVICE="ssh" ;; - "pacman") + pacman) install_package openssh SSH_SERVICE="sshd" ;; diff --git a/core/tabs/utils/encrypt_decrypt_tool.sh b/core/tabs/utils/encrypt_decrypt_tool.sh index 4c2818f5..446a2e14 100644 --- a/core/tabs/utils/encrypt_decrypt_tool.sh +++ b/core/tabs/utils/encrypt_decrypt_tool.sh @@ -10,7 +10,7 @@ if ! command_exists openssl; then pacman) "$ESCALATION_TOOL" "$PACKAGER" -Syu --noconfirm openssl ;; - apt-get) + apt-get|nala) "$ESCALATION_TOOL" "$PACKAGER" update && "$ESCALATION_TOOL" "$PACKAGER" install -y openssl ;; dnf)