Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Commit ceff99a5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

proper tomcat package is used to restart

parent a2a6b14e
Pipeline #9395 failed with stage
in 4 minutes and 53 seconds
......@@ -19,7 +19,21 @@ chmod 0755 /usr/sbin/policy-rc.d
bash <(curl -s https://minerva.pages.uni.lu/doc/scripts/install.sh)
mv /usr/sbin/policy-rc.d.backup /usr/sbin/policy-rc.d
service tomcat8 start
TOMCAT_PACKAGE="";
TOMCAT7_OK=$(dpkg-query -W --showformat='${Status}\n' tomcat7|grep "install ok installed")
TOMCAT8_OK=$(dpkg-query -W --showformat='${Status}\n' tomcat8|grep "install ok installed")
if [ "$TOMCAT7_OK" != "" ];
then
TOMCAT_PACKAGE='tomcat7'
fi
if [ "$TOMCAT8_OK" != "" ];
then
TOMCAT_PACKAGE='tomcat8'
fi
service $TOMCAT_PACKAGE start
#we need to wait a bit for tomcat start
sleep 15
wget http://localhost:8080/minerva/
......
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