summarylogtreecommitdiffstats
path: root/unarelith-git.install
blob: 37bccbcb3d5e9b88a4f597293a25a36ef895c8e8 (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/unarelith

	bash scripts/setup_prod.sh

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

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

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

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

	bash scripts/update_prod.sh

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

	sudo systemctl restart httpd
}