This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

postinstall/profile.sh: pls consider testing for preexisting symbolic link


--------

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]