Skip to content

Commit 47aece2

Browse files
committed
Adjust postinstall timings
1 parent f2afd8b commit 47aece2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

debian/ipt.postinst

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131

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

34-
chown $TOMCAT_USER:$TOMCAT_GROUP /usr/share/ipt/ipt.war
34+
# chown $TOMCAT_USER:$TOMCAT_GROUP /usr/share/ipt/ipt.war
3535
chown $TOMCAT_USER:$TOMCAT_GROUP "$IPT_XML"
3636

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

73+
# Allow ipt to start
74+
sleep 3
75+
7376
# Create or update the configuration file with the directory
7477
CONFIG_FILE="/var/lib/tomcat9/webapps/ipt/WEB-INF/datadir.location"
7578

0 commit comments

Comments
 (0)