[dbus PATCH 10/18] spec: don't use hard-coded system_user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 libvirt-dbus.spec.in | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/libvirt-dbus.spec.in b/libvirt-dbus.spec.in
index 572300f..87f20d4 100644
--- a/libvirt-dbus.spec.in
+++ b/libvirt-dbus.spec.in
@@ -2,6 +2,7 @@
 
 %define libvirt_version @LIBVIRT_REQUIRED@
 %define systemd_version @SYSTEMD_REQUIRED@
+%define system_user @SYSTEM_USER@
 
 Name: @PACKAGE@
 Version: @VERSION@
@@ -39,10 +40,10 @@ rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-getent group libvirtdbus >/dev/null || groupadd -r libvirtdbus
-getent passwd libvirtdbus >/dev/null || \
-    useradd -r -g libvirtdbus -d / -s /sbin/nologin \
-    -c "Libvirt DBus bridge" libvirtdbus
+getent group %{system_user} >/dev/null || groupadd -r %{system_user}
+getent passwd %{system_user} >/dev/null || \
+    useradd -r -g %{system_user} -d / -s /sbin/nologin \
+    -c "Libvirt DBus bridge" %{system_user}
 exit 0
 
 %files
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux