Romain Kang([EMAIL PROTECTED])@2001.07.23 18:21:00 +0000:
> I've been using this in a PLIST:
>
> 1 @exec test -d %D/var/run/procstates || mkdir -p %D/var/run/procstates
> 2 @exec chown root.wheel %D/var/run/procstates && chmod 1775 %D/var/run/procstates
>
> The rationale for each line:
> - 1 Install: make sure that the directory exists, avoiding error messages
> if an earlier instance of the package is on the machine.
> - 2 Install: make sure directory has correct permissions.
>
> For some reason, there are machines where the package is added, but
> /var/run/procstates does not get created. pkg_add has no complaints.
>
> I've looked at the package, root's login environment, and the
> pkg_add source code, but I don't see any reason for this anomaly.
shouldn't mkdir -p -m 1755 /what/ever work?
/k
--
> Vegetarians for oral sex -- "The only meat that's fit to eat"
KR433/KR11-RIPE -- WebMonster Community Founder -- nGENn GmbH Senior Techie
http://www.webmonster.de/ -- ftp://ftp.webmonster.de/ -- http://www.ngenn.net/
karsten&rohrbach.de -- alpha&ngenn.net -- alpha&scene.org -- [EMAIL PROTECTED]
GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE DF22 3340 4F4E 2964 BF46
Please do not remove my address from To: and Cc: fields in mailing lists. 10x
PGP signature