AttuneOps / Create-Windows-ISO-with-autounattend-built-on-macOS-or-Linux

This Attune Project provides an efficient and streamlined approach to creating customised Windows installation ISOs using the autounattend.

Home Page:https://github.attuneautomation.com/Automate-Windows-ISO-with-autounattend-built-on-macOS-or-Linux/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve the 'Setup amba on Linux' Blueprint to run on RHEL, Debian, and macOS distributions

brentonford opened this issue · comments

Improve the 'Setup amba on Linux' Blueprint to run on RHEL, Debian, and macOS distributions.

see the example:

# Check for RHEL/CentOS
if [ -f /etc/redhat-release ]
then
    echo "Installing Samba on RHEL/CentOS..."
    dnf install -y samba samba-client samba-common

# Check for Ubuntu/Debian
elif [ -f /etc/lsb-release ] || [ -f /etc/debian_version ]
then
    echo "Installing Samba on Ubuntu/Debian..."
    apt-get update
    apt-get install -y samba

# Check for macOS
elif [ "$(uname)" == "Darwin" ]
then
    echo "Installing Samba on macOS..."
    brew install samba

else
    echo "Unsupported operating system."
    false
fi