[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to divert /etc/profile?

On Mon, Jul 04, 2011 at 11:50:58AM +0200, Harald Dunkel wrote:
> I would like to install a private package diverting
> /etc/profile (to support /etc/profile.d). Problem:
> There is no owner for this file.

Stock Debian already supports /etc/profile.d.

    if [ -d /etc/profile.d ]; then
      for i in /etc/profile.d/*.sh; do
        if [ -r $i ]; then
          . $i
      unset i

Freedom-based blog/wiki/web hosting: http://www.branchable.com/

Reply to: