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