aboutsummaryrefslogtreecommitdiffstats
path: root/print/cups-base/pkg-plist
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2007-06-08 21:57:13 +0800
committerdinoex <dinoex@FreeBSD.org>2007-06-08 21:57:13 +0800
commitc9492477d82752f6580fb3f3267e14f80f129270 (patch)
tree45990b834733b1446233754a8524ba8a7f9d9ea6 /print/cups-base/pkg-plist
parent46a0429f386fa5a33cfd6012b9b8ab8a8a88a367 (diff)
downloadfreebsd-ports-gnome-c9492477d82752f6580fb3f3267e14f80f129270.tar.gz
freebsd-ports-gnome-c9492477d82752f6580fb3f3267e14f80f129270.tar.zst
freebsd-ports-gnome-c9492477d82752f6580fb3f3267e14f80f129270.zip
- fix order for creation for user, groups and dirs.
PR: 113473
Diffstat (limited to 'print/cups-base/pkg-plist')
-rw-r--r--print/cups-base/pkg-plist3
1 files changed, 3 insertions, 0 deletions
diff --git a/print/cups-base/pkg-plist b/print/cups-base/pkg-plist
index a148de7481dc..bb9eed486055 100644
--- a/print/cups-base/pkg-plist
+++ b/print/cups-base/pkg-plist
@@ -1,3 +1,6 @@
+@exec if ! pw groupshow cups 2>/dev/null; then pw groupadd cups -g 193; fi
+@exec if ! pw usershow cups 2>/dev/null; then pw useradd cups -g cups -u 193 -h - -d /nonexistent -s /usr/sbin/nologin -c "CUPS Owner"; fi
+@unexec if pw usershow cups; then pw userdel cups; fi
@exec mkdir -p /var/spool/cups/tmp || true
@exec chown -R root:daemon /var/spool/cups
@exec mkdir -p /var/cache/cups || true