From bc79aaf1718321573b28f8d72c552b5ac5b8a869 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 23 Mar 2018 09:52:33 -0400 Subject: [PATCH] Setup Script - Fix install_master function --- so-setup-network.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/so-setup-network.sh b/so-setup-network.sh index 2f45f7d04..3853bb643 100644 --- a/so-setup-network.sh +++ b/so-setup-network.sh @@ -165,7 +165,12 @@ got_root() { } install_master() { - yum -y install salt-master + if [ $OS == 'centos' ]; then + yum -y install salt-master + else + apt install -y salt-master + fi + copy_master_config # If Centos Enable the service } @@ -411,7 +416,7 @@ if (whiptail_you_sure) then start_salt echo "accepting master key" accept_salt_key_local - + whiptail_setup_complete fi