Compatibility with macOS 11 and adding more recent PCRE
[OSXPackageBuilder.git] / pkg resources / single-binary scripts / preinstall
index 0e3926f..bfa068f 100755 (executable)
@@ -27,7 +27,8 @@
 #                USA
 #
 # Modification : If you modify this file please consider whether your 
-#                changes ought to be passed back to the macsetup module.
+#                changes ought to be passed back to the OSXPackageBuilder
+#                module.
 #
 
 #  This preinstall script:
@@ -92,7 +93,7 @@ echo 'Darwin major release version is:' ${darwin_major_rel_num} >> ${logfile}
 #
 case "${darwin_major_rel_num}" in
   # Mac OS X 10.5 or higher
-  9|1*)
+  9|1*|2*|3*)
     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