aboutsummaryrefslogtreecommitdiff
path: root/www/rt34/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'www/rt34/pkg-install')
-rw-r--r--www/rt34/pkg-install20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/rt34/pkg-install b/www/rt34/pkg-install
new file mode 100644
index 000000000000..c7a940c2aa4d
--- /dev/null
+++ b/www/rt34/pkg-install
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $FreeBSD$
+#
+
+if [ "$2" != "PRE-INSTALL" ]; then
+ exit 0
+fi
+
+GROUP=rt
+
+if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
+ if pw groupadd ${GROUP}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+fi
+
+exit 0