From 20fe66453554f0b6db5becac73ef381c2a341464 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 2 Sep 2013 20:51:03 +0300 Subject: post- scripts: handle configuration files --- debian/postinst | 13 +++++++++++++ debian/postrm | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 debian/postinst create mode 100755 debian/postrm diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..d622001 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +case "$1" in +configure) + chown -R www-data: /var/lib/plinth /var/log/plinth + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..73d0629 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +case "$1" in +purge) + rm -rf /var/log/plinth /var/lib/plinth + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit v1.2.3