From 540e4b9bd685af8272114a0d0722b69eaafa7e82 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 9 Mar 2018 13:38:23 +0100 Subject: debianize the package Signed-off-by: Olivier Gayot --- debian/swiftstory.postinst | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 debian/swiftstory.postinst (limited to 'debian/swiftstory.postinst') diff --git a/debian/swiftstory.postinst b/debian/swiftstory.postinst new file mode 100644 index 0000000..5874566 --- /dev/null +++ b/debian/swiftstory.postinst @@ -0,0 +1,34 @@ +#!/bin/sh +# postinst script for swiftstory + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + configure) + adduser --system swiftstory --no-create-home + ;; + + abort-upgrade | abort-remove | abort-deconfigure ) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit v1.2.3