Ignore:
Timestamp:
Jul 31, 2011, 5:02:19 AM (9 years ago)
Author:
jmr@…
Message:

make group creation tiger compatible, and try to fix invalid PrimaryGroupID for runuser on tiger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Makefile.in

    r81415 r81454  
    4343            if test `id -u` -eq 0; then \
    4444                echo "Creating group \"${RUNUSR}\"" ; \
    45                 ${DSEDITGROUP} -q -o create -n . ${RUNUSR} ; \
     45                ${DSEDITGROUP} -q -o create ${RUNUSR} ; \
    4646            else \
    4747                echo "Not creating group \"${RUNUSR}\" (not root)" ; \
     
    6262            else \
    6363                echo "Not creating user \"${RUNUSR}\" (not root)" ; \
     64            fi ; \
     65        fi ; \
     66        if test `sw_vers -productVersion | /usr/bin/awk -F . '{print $$2}'` -eq 4; then \
     67            GID=`${DSCL} -q . -read /Groups/${RUNUSR} PrimaryGroupID | /usr/bin/awk '{print $$2}'` ; \
     68            if test "`${DSCL} -q . -read /Users/${RUNUSR} PrimaryGroupID 2>/dev/null | /usr/bin/awk '{print $$2}'`" != "$$GID"; then \
     69                echo "Fixing PrimaryGroupID for user \"${RUNUSR}\"" ; \
     70                ${DSCL} -q . -create /Users/${RUNUSR} PrimaryGroupID $$GID ; \
    6471            fi ; \
    6572        fi ; \
Note: See TracChangeset for help on using the changeset viewer.