This commit is contained in:
Jephté Clain 2017-06-28 23:33:02 +04:00
parent f663e59746
commit e3344f512e
1 changed files with 1 additions and 1 deletions

2
toinst
View File

@ -360,7 +360,7 @@ debian:*)
;;
runs:*)
v="${TOMCAT_PROFILE#runs:tomcat}"
if [ -z "$CATALINA_BASE" -a "$v" != "$TOMCAT_PROFILE" ]; then
if [ -z "$CATALINA_BASE" -a -n "$v" -a "$v" != "$TOMCAT_PROFILE" ]; then
array_lsdirs ts /opt "apache-tomcat-$v*"
CATALINA_BASE="${ts[0]}"
fi