From 61d3ac1946afcbbdacfc6aded3147e279222f07a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 19 Feb 2020 13:34:49 +0100 Subject: Debian: tasks - create celery log dir --- debian.tasks/changelog | 5 +++++ debian.tasks/ishtar-tasks.postinst | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 debian.tasks/ishtar-tasks.postinst 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 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 -- cgit v1.2.3