Commit 3ee9ffeb authored by Piotr Gawron's avatar Piotr Gawron
Browse files

different logrotate for tomcat8 and tomcat9

parent 24841717
Pipeline #57323 canceled with stage
in 6 minutes and 11 seconds
......@@ -6,8 +6,9 @@ minerva (16.2.0) stable; urgency=medium
prevent double click (#1504)
* Bug fix: data overlay rectangle for complex is put behind child rectangle
(#1698)
* Bug fix: properly logrotate logs when using tomcat9
-- Piotr Gawron <piotr.gawron@uni.lu> Tue, 31 May 2022 16:00:00 +0200
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 1 Jun 2022 10:00:00 +0200
minerva (16.1.1) stable; urgency=medium
* Bug fix: search by reactionId with "_" did not return a reaction (#1696)
......
......@@ -90,9 +90,6 @@ echo "Architecture: $arch" >>debian/control
#set manual file
echo minerva.txt.gz /usr/share/doc/minerva/minerva.txt.gz >> debian/install;
#logrotate configuration for minerva log4j connector
echo minerva /etc/logrotate.d >> debian/install;
#remove some sample file
rm debian/*.EX
rm debian/*.ex
......
/var/log/tomcat9/minerva.txt {
copytruncate
weekly
dateext
rotate 52
compress
missingok
create 640 tomcat adm
su tomcat adm
}
minerva.war /usr/share/minerva/
minerva-tomcat8 /usr/share/minerva/logrotate/
minerva-tomcat9 /usr/share/minerva/logrotate/
pgsql /usr/share/dbconfig-common/data/minerva/install/
......@@ -75,6 +75,8 @@ case "$1" in
ln -sf /usr/share/minerva/minerva.war /var/lib/$TOMCAT_PACKAGE/webapps/minerva.war
invoke-rc.d $TOMCAT_PACKAGE start
rm -rf /etc/logrotate.d/minerva
ln -sf /usr/share/minerva/logrotate/minerva-$TOMCAT_PACKAGE /etc/logrotate.d/minerva
#minerva prior to 14.0 could be installed on tomcat7, we need to migrate files from such version to current one
if [ -d "/var/lib/tomcat7/webapps/map_images/" ]; then
......
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