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:
parent
5112be9c6e
commit
fb35692c1c
1 changed files with 2 additions and 2 deletions
4
debian/navalplan.postinst
vendored
4
debian/navalplan.postinst
vendored
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue