diff --git a/Installer/distribution-mpkg/resources/admin_privs_needed.command b/Installer/distribution-mpkg/resources/admin_privs_needed.command index e4f9210a..ff4e42cb 100755 --- a/Installer/distribution-mpkg/resources/admin_privs_needed.command +++ b/Installer/distribution-mpkg/resources/admin_privs_needed.command @@ -4,6 +4,15 @@ SCRIPT_WD=`pwd` DIR=/Library/Receipts/clicktoflash-nonadmin.pkg/ GROUPS=`id -Gn $USER` +case `uname -r` in + [89].*) + true + ;; + *) + echo "Running on Snow Leopard or newer, no need to care." + exit 0 +esac + if [ -d $DIR ]; then echo "There is a receipt, no admin privs required for installer pkg." exit 0 diff --git a/Installer/distribution-mpkg/resources/no_admin_privs_needed.command b/Installer/distribution-mpkg/resources/no_admin_privs_needed.command index 164ad647..755dd935 100755 --- a/Installer/distribution-mpkg/resources/no_admin_privs_needed.command +++ b/Installer/distribution-mpkg/resources/no_admin_privs_needed.command @@ -4,6 +4,15 @@ SCRIPT_WD=`pwd` DIR=/Library/Receipts/clicktoflash-nonadmin.pkg/ GROUPS=`id -Gn $USER` +case `uname -r` in + [89].*) + true + ;; + *) + echo "Running on Snow Leopard or newer, no need to care." + exit 1 +esac + if [ -d $DIR ]; then echo "There is a receipt, no admin privs required for installer pkg." exit 1