new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / init / osx105-addusers.sh
old mode 100644 (file)
new mode 100755 (executable)
index 6bc1cab..07f2cb9
@@ -1,13 +1,5 @@
 #! /bin/bash
 # By Spransy, Derek" <DSPRANS () emory ! edu> and Charlie Scott
-#
-# alterations by bil hays 2013
-# -Switched to bash
-# -Added some sanity checks
-# -Added routine to find the first 3 contiguous UIDs above 100,
-#  starting at 600 puts this in user space
-# -Added lines to append the ossec users to the group ossec
-#  so the the list GroupMembership works properly
 
 #####
 # This checks for an error and exits with a custom message
@@ -24,13 +16,13 @@ fi
 DSCL="/usr/bin/dscl";
 
 function check_errm
-   {
+{
    if  [[ ${?} != "0" ]]
       then
       echo "${1}";
       exit ${2};
       fi
-   }
+}
 
 # get unique id numbers (uid, gid) that are greater than 100
 unset -v i new_uid new_gid idvar;
@@ -125,4 +117,3 @@ else
    sudo ${DSCL} localhost -createprop /Local/Default/Users/ossec Password "*"
 fi
 
-