🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #2031

Upgrade_3.0.app/Default.upgrade/PostProcess has a problem

#2031
From: Rob Francis
Date: Tue, 29 Dec 1992 04:14
33 lines
1789 bytes
There's this little snippit in the script that runs after the upgrade
to update the /users directory in Netinfo:

    echo -n "    Updating user accounts..."
    set users = `niutil -t -list localhost/${usetag} /users|awk '{print $2}'`
    foreach user ($users)
        niutil -t -list localhost/${usetag} /users/${user}/info >& /dev/null
        if ($status != 0) then
            niutil -t -create localhost/${usetag} /users/${user}/info
            niutil -t -createprop localhost/${usetag} /users/${user}/info _writers ${user}
        endif
    end
    echo "$#users accounts"

Basically, it just adds the info property to each user's directory.
But there's a problem.  My Upgrade Log showed the following:

Updating user accounts...foreach: Too many arguments.

I have 1167 accounts.  I haven't figured out what the cut off is, but
I did manage to make it work by commenting that out of the script and
running something that did the same thing using /bin/sh and a while
loop.  Then commenting it out of the script and rerunning the script
by hand.

So I'm not sure where the cut off is, but thought others might want to
know about this little treat.

-rob
---
Rob Francis   Unix Systems Specialist, Indiana University
francisr@indiana.edu (812)855-0327
Technical Details
Message-ID: <C006G2.F3s@usenet.ucs.indiana.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!stupid!francisr

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!stupid!francisr
From: francisr@stupid.ucs.indiana.edu (Rob Francis)
Subject: Upgrade_3.0.app/Default.upgrade/PostProcess has a problem
Message-ID: <C006G2.F3s@usenet.ucs.indiana.edu>
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: stupid.ucs.indiana.edu
Organization: Indiana University
Date: Tue, 29 Dec 1992 04:14:26 GMT
Lines: 33