Fixed Debian package in order to work with last versions of Tomcat.

In Tomcat 6 "/etc/tomcat6/context.xml" doesn't have a new line in the last one and this was causing troubles adding NavalPlan configuration.

FEA: ItEr66S03CommunityMaterialItEr65S04
This commit is contained in:
Manuel Rego Casasnovas 2010-12-20 18:16:17 +01:00
parent 5112be9c6e
commit fb35692c1c

View file

@ -27,6 +27,7 @@ then
#
saved_ifs=${IFS}
IFS=$'\n'
{ cat /etc/tomcat6/context.xml; echo; } |
while read -r line ; do
if [[ ${line} = *\</Context\>* ]] ; then
cat <<-EOF
@ -41,8 +42,7 @@ then
EOF
fi
echo "${line}"
done < /etc/tomcat6/context.xml \
> /etc/tomcat6/context.xml.new
done > /etc/tomcat6/context.xml.new
IFS=${saved_ifs}
mv /etc/tomcat6/context.xml.new \