blob: fa6f724b37163d302bc2942109777133bf13fe88 (
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/dtfp
bash scripts/setup_prod.sh
# Set permissions
chown http:http . db.sqlite3
chown http:http -R static myenv
sed -i "s/^DEBUG = .*$/DEBUG = False/" dtfp/settings.py
echo "==>"
echo "==>"
echo "==> Check /usr/share/webapps/dtfp/misc/apache.conf"
echo "==>"
echo "==>"
}
post_upgrade() {
cd /usr/share/webapps/dtfp
bash scripts/update_prod.sh
sed -i "s/^DEBUG = .*$/DEBUG = False/" dtfp/settings.py
sudo systemctl restart httpd
}
|