summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/vyatta-cfg.preinst')
-rw-r--r--debian/vyatta-cfg.preinst14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/vyatta-cfg.preinst b/debian/vyatta-cfg.preinst
new file mode 100644
index 0000000..ffdee1b
--- /dev/null
+++ b/debian/vyatta-cfg.preinst
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
+${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}
+set -e
+set -u
+
+# add groups for vyatta accounts
+if ! getent group vyattacfg >/dev/null; then
+ addgroup --system vyattacfg
+fi
+if ! getent group vyattaop >/dev/null; then
+ addgroup --system vyattaop
+fi