X-Git-Url: http://www.privoxy.org/gitweb/index.html?a=blobdiff_plain;f=pkg%20resources%2Fsingle-binary%20scripts%2Fpreupgrade;h=f0238eaafd2ff86854c824902685ef480e809df3;hb=45827f4223261f345af0da7b1256d6e8938142c4;hp=953a45c0bf708d325d0ed3b84abb35581c631499;hpb=a2d32da683d8ebfa1bc1cb709a625bebfd9099b6;p=OSXPackageBuilder.git diff --git a/pkg resources/single-binary scripts/preupgrade b/pkg resources/single-binary scripts/preupgrade index 953a45c..f0238ea 100755 --- a/pkg resources/single-binary scripts/preupgrade +++ b/pkg resources/single-binary scripts/preupgrade @@ -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: @@ -91,8 +92,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