From e4fb31f68b268731e92a1fe8cfc6f369d13cfb91 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 31 Jul 2017 12:13:34 +0200 Subject: [PATCH] Create group 'printadmin' by default --- samba.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samba.spec b/samba.spec index 490734e..f267a6e 100644 --- a/samba.spec +++ b/samba.spec @@ -1049,6 +1049,9 @@ TDB_NO_FSYNC=1 make %{?_smp_mflags} test %systemd_postun_with_restart smb.service %systemd_postun_with_restart nmb.service +%pre common +getent group printadmin >/dev/null || groupadd -r printadmin || : + %post common /sbin/ldconfig /usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/samba.conf