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

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

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