| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| In-Reply-To: | <47F65715.CAC1761C@dessent.net> |
| Subject: | Re: 1.5.25-11 Bash? Problem installing unattended on Server 2008 |
| To: | cygwin AT cygwin DOT com |
| X-Mailer: | Lotus Notes Release 7.0 HF277 June 21, 2006 |
| Message-ID: | <OF5C695E07.E9EDACA1-ONC1257424.002C5DA0-C1257424.003EFC58@de.ibm.com> |
| From: | Christoph Herdeg <CHERDEG AT de DOT ibm DOT com> |
| Date: | Mon, 7 Apr 2008 13:28:00 +0200 |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 AT 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 AT dessent DOT ne
t> To
Sent by: cygwin AT cygwin DOT com
cygwin-owner AT 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 AT cygwin DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |