summarylogtreecommitdiffstats
path: root/tomee.install
blob: ceac15675220fa4786f975b3b2daad6ea3316392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pre_upgrade() {
	echo "  -> Stoping tomee.service ..."
	systemctl stop tomee.service
	wait
}

post_upgrade() {
	echo "  -> Updating installation directory permissions ..."
	chmod -R u=rwX,g=rwX,o=rX opt/tomee
}

pre_remove() {
	echo "  -> Stoping tomee.service ..."
	systemctl stop tomee.service
	wait
	echo "  -> Disabling tomee.service ..."
	systemctl disable tomee.service
}