diff --git a/so-setup-network.sh b/so-setup-network.sh index ef1009013..28632f543 100644 --- a/so-setup-network.sh +++ b/so-setup-network.sh @@ -54,7 +54,11 @@ accept_salt_key_remote() { } add_socore_user_master() { - + if [ $OS == 'centos' ]; then + local ADDUSER=adduser + else + local ADDUSER=useradd + fi # Add user "socore" to the master. This will be for things like accepting keys. groupadd --gid 939 socore $ADDUSER --uid 939 --gid 939 --home-dir /opt/so socore