1.5.25-11 Bash? Problem installing unattended on Server 2008
Christoph Herdeg
CHERDEG@de.ibm.com
Mon Apr 7 11:28:00 GMT 2008
Hello List,
Brian, thank you for your 1st intervention. As I already wrote to the list
on Friday one of our two problems (copying the skeleton files) has resolved
meanwhile: it was caused by the Nullsoft-Installer creating /home and
/home/Administrator. When I look at "/etc/profile" I can see this
confirmed:
if [ ! -d "${HOME}" ]; then
[...]
fi
Due to the fact that the action of copying the skeleton files resides
within the same if-fi-construction they won't be copied if the HOME of the
installing user already exists. Okay. However: our script file gets copied
to "/etc/profile.d" but is not run by Cygwin when bash is started by the
Installer (the installer runs "cygwin.bat" from c:\cygwin...which cds to
c:\cygwin\bin and runs "bash --login -i"). The value of TMP is
"/cygdrive/c/Users/Admini~1/AppData/Local/Temp" (w/o the quotes). BTW:
manually executing /etc/profile works without any problem - but what can we
draw from this? Adding the "set -x" produces the following output (also run
manually):
Administrator@W2K8_test_cherdeg ~
$ /etc/profile
+
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin:
/usr/X11R6/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Wind
ows/System32/Wbem
+ export PATH
+
MANPATH=/usr/local/man:/usr/share/man:/usr/man:/usr/local/man:/usr/share/man:/
usr/man:
+ export MANPATH
+
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:/usr/local/info:/usr/share/
info:/usr/info:
+ export INFOPATH
++ id -un
+ USER=Administrator
+ export USER
+ '[' '!' -d /home/Administrator ']'
+ chmod 1777 /tmp
+ MAKE_MODE=unix
+ export MAKE_MODE
+ CVS_RSH=/bin/ssh
+ export CVS_RSH
+ case "`echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' |
/usr/bin/sed -e 's/^
_//'`" in
++ echo _/etc/profile
++ /usr/bin/tr '[:upper:]' '[:lower:]'
++ /usr/bin/sed -e 's/^_//'
+ PS1='$ '
+ export PS1
+ '[' -d /etc/profile.d ']'
++ /bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname
'*.zsh'
++ LC_ALL=C
++ sort
+ read f
+ '[' -f /etc/profile.d/00bash.sh ']'
+ . /etc/profile.d/00bash.sh
++ /bin/test /bin/sh.exe -ot /bin/bash.exe
++ return 0
+ read f
+ '[' -f /etc/profile.d/ibm_customize_cygwin.sh ']'
+ . /etc/profile.d/ibm_customize_cygwin.sh
My hint would be that there is nothing wrong in these
lines..."ibm:customize_cygwin.sh" would be our script to further customize
the installation. However: /etc/profile is not executed automatically. It's
quite a pity but it does not help to see it working when executed
manually...Remember: It doesn't work ONLY in the case that "cygwin.bat" is
run by the Nullsoft-Installer. ONLY then the "bash: cannot create temp file
for here document: Bad address" -error happens
Does anybody have some ideas?
Regards,
Chris
Brian Dessent
<brian@dessent.ne
t> To
Sent by: cygwin@cygwin.com
cygwin-owner@cygw cc
in.com
Subject
Re: 1.5.25-11 Bash? Problem
04.04.2008 18:28 installing unattended on Server
2008
Please respond to
cygwin@cygwin.com
Christoph Herdeg wrote:
> bash: cannot create temp file for here document: Bad address
> bash: /home/Administrator/.bash_profile: Bad address
> ...
> How could we fix this situation - are there any preinstall-requisites
> required on the target system, e.g. setting special ACLs?
What is the value of the TMP environment variable when /etc/profile
runs? What is the resulting output after adding "set -x" at the
beginning of /etc/profile?
Brian
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list