On Fri, Jan 10, 2003 at 10:57:03AM -0600, [EMAIL PROTECTED] wrote:
>--------
>
>how about:
>
>  if [ ! -f "/etc/profile" -a ! -L "/etc/profile"]; then
>    cp -a /etc/profile.default /etc/profile
>  fi
>
>Rightly or wrongly I setup /etc/profile as a symblic link to
>a network drive version of profile, so that several hosts
>share the same file.  The postinstall/profile.sh leaves the
>link but then copies in the default profile, so I have to manually
>delete it.
>
>So, in general should there be a check for a symbolic link also
>as shown above.
>
>Just a thought.

It's a good thought, but, IMO, it probably should just be a '-e' check
rather than a '-f' check.  If someone wants to create a profile
directory, they should be allowed to do that, too.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to