summaryrefslogtreecommitdiff
path: root/debian/python3-django-ishtar.postinst
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-01-30 18:51:11 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-09 18:05:36 +0100
commit1c0e8f4bea1b79e43ac8565a2bb1578a08f421c3 (patch)
tree5e65478d4fade61a68f3f811d3634092e0c59809 /debian/python3-django-ishtar.postinst
parentd4baaca8a24bc7af61860d24aa49d45679a999fb (diff)
downloadIshtar-1c0e8f4bea1b79e43ac8565a2bb1578a08f421c3.tar.bz2
Ishtar-1c0e8f4bea1b79e43ac8565a2bb1578a08f421c3.zip
Debian: install other files - fix libraries
Diffstat (limited to 'debian/python3-django-ishtar.postinst')
-rw-r--r--debian/python3-django-ishtar.postinst8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/python3-django-ishtar.postinst b/debian/python3-django-ishtar.postinst
index 5efd25548..4d850ac27 100644
--- a/debian/python3-django-ishtar.postinst
+++ b/debian/python3-django-ishtar.postinst
@@ -3,11 +3,15 @@
set -e
set -x
-DATA_DIR=/var/lib/python-django-ishtar
-INSTANCES_FILE=$DATA_DIR/INSTANCES
+DATA_DIR=/srv/ishtar
+INSTANCES_FILE=/etc/ishtar/instances
case "$1" in
configure)
+ mkdir -p /etc/ishtar/
+ if [ ! -f /etc/ishtar/config ]; then
+ cp /usr/share/python3-django-ishtar/install/config.template /etc/ishtar/config ;
+ fi
instances="$( (cat $INSTANCES_FILE 2>/dev/null || true) | xargs )"
if [ -n "$instances" ]; then
echo "updading instances found in $INSTANCES_FILE: $instances"