From 48d32a33fcafb0bcb2ccf30b55461e237f40f23b Mon Sep 17 00:00:00 2001
From: Anastasia Karachaliou <anastasia.karachaliou@cern.ch>
Date: Tue, 12 Jun 2018 13:32:05 +0200
Subject: [PATCH] Changed the user and group cta,cta to cta,tape because the
 cta group no longer exists.

---
 cta.spec.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cta.spec.in b/cta.spec.in
index da76b1e11c..a10fefb582 100644
--- a/cta.spec.in
+++ b/cta.spec.in
@@ -114,7 +114,7 @@ The tape server daemon
 /usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g tape cta
 %files -n cta-taped
 %defattr(-,root,root)
-%attr(0755,cta,cta) %dir /var/log/cta
+%attr(0755,cta,tape) %dir /var/log/cta
 %attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-taped
 %attr(0755,root,root) %{_bindir}/cta-taped
 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-taped.conf.example
@@ -149,10 +149,10 @@ The xroot plugin
 %files -n cta-frontend
 %defattr(0755,root,root)
 %{_libdir}/libXrdSsiCta.so*
-%attr(0755,cta,cta) %dir /var/log/cta
+%attr(0755,cta,tape) %dir /var/log/cta
 %attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-frontend
 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-frontend-xrootd.conf
-%attr(0644,cta,cta) /etc/systemd/system/cta-frontend.service
+%attr(0644,cta,tape) /etc/systemd/system/cta-frontend.service
 
 #Frontend installs libraries so we need ldconfig.
 %post -n cta-frontend
@@ -308,7 +308,7 @@ Tools to faciliate working with acsd in cta
 /usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g tape cta
 %files -n cta-acsd
 %defattr(-,root,root)
-%attr(0755,cta,cta) %dir /var/log/cta
+%attr(0755,cta,tape) %dir /var/log/cta
 %attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-acsd
 #%attr(0644,root,root) %doc /usr/share/man/man1/cta-acsd.1cta.gz
 %attr(0755,root,root) %{_bindir}/cta-acsd
@@ -340,7 +340,7 @@ Tools to faciliate working with rmcd and smc in cta
 /usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g tape cta
 %files -n cta-rmcd
 %defattr(-,root,root)
-%attr(0755,cta,cta) %dir /var/log/cta
+%attr(0755,cta,tape) %dir /var/log/cta
 %attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-rmcd
 %attr(0644,root,root) %doc /usr/share/man/man1/cta-rmcd.1cta.gz
 %attr(0755,root,root) %{_bindir}/cta-rmcd
-- 
GitLab