summaryrefslogtreecommitdiff
path: root/debian.tasks/ishtar-tasks.postinst
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-02-19 13:34:49 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-09 18:05:36 +0100
commit61d3ac1946afcbbdacfc6aded3147e279222f07a (patch)
tree8f6a3962af204eb49748550020aabf0c6564f58d /debian.tasks/ishtar-tasks.postinst
parent460ca9b369d84b4e84d5b54765196c670bdb30c6 (diff)
downloadIshtar-61d3ac1946afcbbdacfc6aded3147e279222f07a.tar.bz2
Ishtar-61d3ac1946afcbbdacfc6aded3147e279222f07a.zip
Debian: tasks - create celery log dir
Diffstat (limited to 'debian.tasks/ishtar-tasks.postinst')
-rw-r--r--debian.tasks/ishtar-tasks.postinst19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian.tasks/ishtar-tasks.postinst b/debian.tasks/ishtar-tasks.postinst
new file mode 100644
index 000000000..23d7328b4
--- /dev/null
+++ b/debian.tasks/ishtar-tasks.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ configure)
+ mkdir -p /var/log/celery
+ chown www-data:www-data /var/log/celery
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac \ No newline at end of file