summaryrefslogtreecommitdiff
path: root/debian/swiftstory.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/swiftstory.postinst')
-rw-r--r--debian/swiftstory.postinst34
1 files changed, 34 insertions, 0 deletions
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:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# 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