diff options
author | Quentin Bazin | 2019-05-28 10:48:21 +0200 |
---|---|---|
committer | Quentin Bazin | 2019-05-28 10:49:42 +0200 |
commit | ed30ef9b0faf3058fa3c0f8987165046cc10d607 (patch) | |
tree | 32ab1bd161e6a2da009c581ae0f1cf1983f2f59e /dtfp-git.install | |
download | aur-ed30ef9b0faf3058fa3c0f8987165046cc10d607.tar.gz |
Repository initialized.
Diffstat (limited to 'dtfp-git.install')
-rw-r--r-- | dtfp-git.install | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dtfp-git.install b/dtfp-git.install new file mode 100644 index 000000000000..fa6f724b3716 --- /dev/null +++ b/dtfp-git.install @@ -0,0 +1,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 +} + |