summarylogtreecommitdiffstats
path: root/engelsystem.install
blob: 198f927043a96b7ab228991dfcdbcea6ba5f3c91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
	echo "enabling the PDO-MySQL module in php"
	sed -i -e 's/;extension=pdo_mysql/extension=pdo_mysql/' /etc/php/php.ini

	install -dm775 /usr/share/webapps/engelsystem/import
	chown http:http /usr/share/webapps/engelsystem/import
	install -dm775 /usr/share/webapps/engelsystem/storage
	chown http:http /usr/share/webapps/engelsystem/storage
}

pre_remove() {
  cp -r /usr/share/webapps/engelsystem /usr/share/webapps/engelsystem_backup
  echo 'Your Engelsystem folder was backed up to /usr/share/webapps/engelsystem_backup'
}

post_remove() {
  rm -rf /usr/share/webapps/engelsystem
}

post_upgrade() {
  echo 'Engelsystem was placed in /usr/share/webapps'
}