corrections following testing on OS X 10.8
[OSXPackageBuilder.git] / pkg resources / single-binary scripts / preupgrade
index 953a45c..0e3926f 100755 (executable)
@@ -91,8 +91,8 @@ echo 'Darwin major release version is:' ${darwin_major_rel_num} >> ${logfile}
 # 3. Create the privoxy group and user (using the host-specific command to do so)
 #
 case "${darwin_major_rel_num}" in
-  # Mac OS X 10.7, 10.6, 10.5
-  11|10|9)
+  # Mac OS X 10.5 or higher
+  9|1*)
     GNAME="`/usr/bin/dscl /Local/Default -list /groups | /usr/bin/grep -E '^(_)?privoxy?'`"
     UNAME="`/usr/bin/dscl /Local/Default -list /users | /usr/bin/grep -E '^(_)?privoxy?'`"
        # create group if it does not exist