summarylogtreecommitdiffstats
path: root/dtfp-git.install
diff options
context:
space:
mode:
authorQuentin Bazin2019-05-28 10:48:21 +0200
committerQuentin Bazin2019-05-28 10:49:42 +0200
commited30ef9b0faf3058fa3c0f8987165046cc10d607 (patch)
tree32ab1bd161e6a2da009c581ae0f1cf1983f2f59e /dtfp-git.install
downloadaur-ed30ef9b0faf3058fa3c0f8987165046cc10d607.tar.gz
Repository initialized.
Diffstat (limited to 'dtfp-git.install')
-rw-r--r--dtfp-git.install28
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
+}
+