summaryrefslogtreecommitdiff
path: root/games/quakeserver/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'games/quakeserver/pkg-install')
-rw-r--r--games/quakeserver/pkg-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/quakeserver/pkg-install b/games/quakeserver/pkg-install
new file mode 100644
index 000000000000..fa62938f7ca1
--- /dev/null
+++ b/games/quakeserver/pkg-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "$2" in
+ PRE-INSTALL)
+ if ! pw user show quakerun >/dev/null 2>&1
+ then
+ echo "===> Creating user quakerun"
+ pw add user quakerun -s /sbin/nologin -c "QuakeServer User" -d /nonexistent
+ fi
+ ;;
+esac