summarylogtreecommitdiffstats
path: root/openminer-web-git.install
blob: 9d06ed892c1188b90315aefdf8c62eddce866c49 (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/openminer

	bash scripts/setup_prod.sh

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

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

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

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

	bash scripts/update_prod.sh

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

	sudo systemctl restart httpd
}