Skip to content

Commit

Permalink
Adjust postinstall timings
Browse files Browse the repository at this point in the history
  • Loading branch information
vjrj committed Jun 18, 2024
1 parent 52b13c2 commit 6715c47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion debian/ipt.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi

IPT_XML="/etc/tomcat9/Catalina/localhost/ipt.xml"

chown $TOMCAT_USER:$TOMCAT_GROUP /usr/share/ipt/ipt.war
# chown $TOMCAT_USER:$TOMCAT_GROUP /usr/share/ipt/ipt.war
chown $TOMCAT_USER:$TOMCAT_GROUP "$IPT_XML"

# Store the value in debconf
Expand Down Expand Up @@ -70,6 +70,9 @@ while [ "$(systemctl is-active tomcat9)" != "active" ]; do
fi
done

# Allow ipt to start
sleep 3

# Create or update the configuration file with the directory
CONFIG_FILE="/var/lib/tomcat9/webapps/ipt/WEB-INF/datadir.location"

Expand Down

0 comments on commit 6715c47

Please sign in to comment.