Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 10 Jan 2003 10:57:03 -0600
From: nicebounce@trodman.com
Message-Id: <200301101657.h0AGv3c25610@tigris.pounder.sol.net>
X-Authentication-Warning: tigris.pounder.sol.net: rodmant set sender to nicebounce@trodman.com (Tom Rodman) using -f
To: cygwin@cygwin.com
Cc: 
X-note: 1G0!G/usr/sbin/sendmail -v -t -f"nicebounce@trodman.com (Tom Rodman)" # for less traceable mail 
X-note: careful "From:" is autocreated by sendmail, unless you define it- then even your bogus def is honored
Subject: postinstall/profile.sh: pls consider testing for preexisting symbolic link
Mime-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII

--------

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.

thanks,

Tom


--
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/

