summarylogtreecommitdiffstats
path: root/gama-platform-jdk.install
blob: 62b0971475793f9718515499b5574337690d5e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {

	chown root:root -R /opt/gama-platform

	chmod a+rw -R /opt/gama-platform/Gama.ini
	chmod a+x -R /opt/gama-platform/Gama
	chmod a+x -R /opt/gama-platform/headless/gama-headless.sh

	# Add gama-headless.sh shortcut in PATH
	ln -s /opt/gama-platform/headless/gama-headless.sh /usr/bin/gama-headless
}

post_upgrade() {
	post_install
}

post_remove() {

	rm /usr/bin/gama-headless
	rm -fr /opt/gama-platform
}