summarylogtreecommitdiffstats
path: root/mycash-git.install
blob: c02856a55d5f99537af1bbd5652f8938a9e43f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
post_install() {
	cd /usr/share/webapps/mycash

	bash scripts/setup_prod.sh

	# Set permissions
	chown http:http . db.sqlite3
	chown http:http -R static myenv

	sed -i "s/^DEBUG = .*$/DEBUG = False/" mycash/settings.py

	echo "==>"
	echo "==>"
	echo "==> Check /usr/share/webapps/mycash/misc/apache.conf"
	echo "==>"
	echo "==>"
}

post_upgrade() {
	cd /usr/share/webapps/mycash

	bash scripts/update_prod.sh

	sed -i "s/^DEBUG = .*$/DEBUG = False/" mycash/settings.py

	sudo systemctl restart httpd
}