From 631bfedd7adf67eab61c75bc6092b196e7250585 Mon Sep 17 00:00:00 2001 From: Anastasia Karachaliou <anastasia.karachaliou@cern.ch> Date: Tue, 12 Jun 2018 13:56:35 +0200 Subject: [PATCH] Replaced getent with grep of /etc/passwd to avoid LDAP --- cta.spec.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cta.spec.in b/cta.spec.in index 45847d8800..11587b71c1 100644 --- a/cta.spec.in +++ b/cta.spec.in @@ -106,12 +106,12 @@ Summary: CERN Tape Archive: tape daemon Group: Application/CTA Requires: logrotate Requires: cta-lib = %{version}-%{release} -Requires(pre): /usr/bin/getent, /usr/sbin/groupadd, /usr/sbin/luseradd +Requires(pre): /usr/bin/egrep, /usr/sbin/groupadd, /usr/sbin/luseradd %description -n cta-taped CERN Tape Archive: The tape server daemon %pre -n cta-taped -/usr/bin/getent passwd cta || /usr/sbin/luseradd -s /bin/nologin -c "CTA system account" -g tape cta +/usr/bin/egrep -q '^cta:' /etc/passwd || /usr/sbin/luseradd -s /bin/nologin -c "CTA system account" -g tape cta %files -n cta-taped %defattr(-,root,root) %attr(0755,cta,tape) %dir /var/log/cta @@ -140,12 +140,12 @@ Group: Application/CTA Requires: logrotate Requires: cta-lib = %{version}-%{release} Requires: xrootd-server -Requires(pre): /usr/bin/getent, /usr/sbin/groupadd, /usr/sbin/luseradd +Requires(pre): /usr/bin/egrep, /usr/sbin/groupadd, /usr/sbin/luseradd %description -n cta-frontend CERN Tape Archive: The xroot plugin %pre -n cta-frontend -/usr/bin/getent passwd cta || /usr/sbin/luseradd -s /bin/nologin -c "CTA system account" -g tape cta +/usr/bin/egrep -q '^cta:' /etc/passwd || /usr/sbin/luseradd -s /bin/nologin -c "CTA system account" -g tape cta %files -n cta-frontend %defattr(0755,root,root) %{_libdir}/libXrdSsiCta.so* @@ -300,12 +300,12 @@ Summary: Tools to faciliate working with acsd in cta Group: Application/CTA Requires: logrotate #Requires: cta-lib = %{version}-%{release} -Requires(pre): /usr/bin/getent, /usr/sbin/groupadd, /usr/sbin/luseradd +Requires(pre): /usr/bin/egrep, /usr/sbin/groupadd, /usr/sbin/luseradd %description -n cta-acsd CERN Tape Archive: Tools to faciliate working with acsd in cta %pre -n cta-acsd -/usr/bin/getent passwd cta || /usr/sbin/luseradd -s /bin/nologin -c "CTA system account" -g tape cta +/usr/bin/egrep -q '^cta:' /etc/passwd || /usr/sbin/luseradd -s /bin/nologin -c "CTA system account" -g tape cta %files -n cta-acsd %defattr(-,root,root) %attr(0755,cta,tape) %dir /var/log/cta @@ -332,12 +332,12 @@ Summary: Tools to faciliate working with rmcd and smc in cta Group: Application/CTA Requires: logrotate #Requires: cta-lib = %{version}-%{release} -Requires(pre): /usr/bin/getent, /usr/sbin/groupadd, /usr/sbin/luseradd +Requires(pre): /usr/bin/egrep, /usr/sbin/groupadd, /usr/sbin/luseradd %description -n cta-rmcd CERN Tape Archive: Tools to faciliate working with rmcd and smc in cta %pre -n cta-rmcd -/usr/bin/getent passwd cta || /usr/sbin/luseradd -s /bin/nologin -c "CTA system account" -g tape cta +/usr/bin/egrep -q '^cta:' /etc/passwd || /usr/sbin/luseradd -s /bin/nologin -c "CTA system account" -g tape cta %files -n cta-rmcd %defattr(-,root,root) %attr(0755,cta,tape) %dir /var/log/cta -- GitLab