summaryrefslogtreecommitdiff
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
parent460ca9b369d84b4e84d5b54765196c670bdb30c6 (diff)
downloadIshtar-61d3ac1946afcbbdacfc6aded3147e279222f07a.tar.bz2
Ishtar-61d3ac1946afcbbdacfc6aded3147e279222f07a.zip
Debian: tasks - create celery log dir
-rw-r--r--debian.tasks/changelog5
-rw-r--r--debian.tasks/ishtar-tasks.postinst19
2 files changed, 24 insertions, 0 deletions
diff --git a/debian.tasks/changelog b/debian.tasks/changelog
index e6245a54f..7edca170e 100644
--- a/debian.tasks/changelog
+++ b/debian.tasks/changelog
@@ -1,3 +1,8 @@
+ishtar-tasks (3.0.2-2) UNRELEASED; urgency=low
+
+ * postinst: create /var/log/celery
+
+ -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 19 Feb 2020 13:30:00 +0200
ishtar-tasks (3.0.2-1) UNRELEASED; urgency=low
* Add config in conf.d dir
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