cancel
Showing results for 
Search instead for 
Did you mean: 

apply_amps.sh not working in centos 5.x

sal
Champ in-the-making
Champ in-the-making
the new script shipped with alfresco 3.2 community doesn't work in Linux Centos 5.x
5 REPLIES 5

mikeh
Star Contributor
Star Contributor
If you've got more detail than that, please raise the problem in JIRA.

Thanks,
Mike

sal
Champ in-the-making
Champ in-the-making

gronfelt
Champ in-the-making
Champ in-the-making
The problem is likely that your apply_amps.sh is in a none-UNIX format. It appears to have the sign ^M added to the end of lines, which might be due to it having been opened in a text editor in Windows for some reason. I recently installed 3.2 in CentOS 5.3 and have not had this problem, so it doesn't appear to be a general error.

There is a utility to fix this, dos2unix (which I believe is installed by default in CentOS 5.3), but you could also do it in vi for instance, manually removing all ^M and other signs that shouldn't be there.

sal
Champ in-the-making
Champ in-the-making
Hi gronfelt, thanks - that fixed it.

I donwloaded alfresco-community-tomcat-3.2.tar.gz on a linux box in a temporary directory

then I did: tar xvf alfresco-community-tomcat-3.2.tar.gz

and finally: ./apply_amps.sh
-bash: ./apply_amps.sh: /bin/sh^M: bad interpreter: No such file or directory

then dos2unix apply_amps.sh and it worked fine

as you see, I haven't changed the file in the distribution… you said you installed 3.2 on Centos, which bundle did you use? mine is build 2039 (final 3.2 community release)

- salvio

gronfelt
Champ in-the-making
Champ in-the-making
I installed the same build, but I used the installer. However, I downloaded the tarred bundle now and you're right, the apply_amps.sh file in it contains the ^M sign.