Seeing setup assistant unexpectedly
I created a payload-free package with the following script as a postflight:
[code]#!/bin/bash
touch /private/var/db/.AppleSetupDone
chown root:wheel /private/var/db/.AppleSetupDone
chmod 600 /private/var/db/.AppleSetupDone
touch /Library/Receipts/.SetupRegComplete
chown root:admin /Library/Receipts/.SetupRegComplete
chmod 400 /Library/Receipts/.SetupRegComplete
exit 0[/code]
After applying the image to a machine, I get the setup assistant. What have I done wrong?
Thanks in advance!