Commit 57f5227c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

checking tomcat version was failing ci

parent 207dbc2a
Pipeline #9405 failed with stage
in 5 minutes and 34 seconds
......@@ -20,12 +20,10 @@ bash <(curl -s https://minerva.pages.uni.lu/doc/scripts/install.sh)
mv /usr/sbin/policy-rc.d.backup /usr/sbin/policy-rc.d
set +e
TOMCAT_PACKAGE="";
echo $TOMCAT_PACKAGE
TOMCAT7_OK=$(dpkg-query -W --showformat='${Status}\n' tomcat7|grep "install ok installed")
echo $TOMCAT7_OK
TOMCAT8_OK=$(dpkg-query -W --showformat='${Status}\n' tomcat8|grep "install ok installed")
echo $TOMCAT8_OK
if [ "$TOMCAT7_OK" != "" ];
then
TOMCAT_PACKAGE='tomcat7'
......@@ -34,6 +32,7 @@ if [ "$TOMCAT8_OK" != "" ];
then
TOMCAT_PACKAGE='tomcat8'
fi
set -e
service $TOMCAT_PACKAGE start
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment