summaryrefslogtreecommitdiffstats
path: root/debian/icingaweb2-module-director.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/icingaweb2-module-director.postinst')
-rw-r--r--debian/icingaweb2-module-director.postinst26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/icingaweb2-module-director.postinst b/debian/icingaweb2-module-director.postinst
new file mode 100644
index 0000000..cef258c
--- /dev/null
+++ b/debian/icingaweb2-module-director.postinst
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ # creating user
+ if ! getent passwd _director > /dev/null 2>&1
+ then
+ useradd -c "icingaweb2-module-director,,," -M -s /bin/bash _director
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument '${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0