On Sat, 2005-07-16 at 19:03 +0200, Marius Mauch wrote:
> On Fri, 15 Jul 2005 21:34:09 -0400
> Mike Frysinger <[EMAIL PROTECTED]> wrote:
>
> > we could care less what users do with /etc/profile.d ... the point is
> > that *only* users should use /etc/profile.d ... we dont want random
> > Gentoo developer Foo installing some Bar.sh into /etc/profile.d with
> > package app-crap/FooBar
>
> Would the following in /et/profile be a solution to this problem?
>
> for x in $( < /etc/profile.d/.default); do
> source "/etc/profile.d/${x}"
> done
>
> That way devs could install stuff there, but it would only be run if
> users added it to the .default file.
If we do something like this, I'll rather not source it, but run it via
the current shell. This should discourage devs to install stuff
touching the environment there rather than /etc/env.d/.
-----
# Append any additional sh scripts found in /etc/profile.d/:
for file in /etc/profile.d/*.sh ; do
if [ -x "${file}" ] ; then
"${file}"
fi
done
-----
As for above, this is one of the examples why we rather did not add
it .. everybody want something added .. global control, per user
control, etc :/
--
Martin Schlemmer
signature.asc
Description: This is a digitally signed message part
