[samba4] enforce KRB5CCNAME=/run/samba/krb5cc_samba for daemons

abbra abbra at fedoraproject.org
Thu May 31 12:13:32 UTC 2012


commit 185a3365ff7f39acf6630505f3f9a82abb33fadf
Author: Alexander Bokovoy <abokovoy at redhat.com>
Date:   Thu May 31 15:13:06 2012 +0300

    enforce KRB5CCNAME=/run/samba/krb5cc_samba for daemons

 samba4.spec |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/samba4.spec b/samba4.spec
index 581ce22..3804505 100644
--- a/samba4.spec
+++ b/samba4.spec
@@ -491,9 +491,10 @@ install -m 0644 packaging/systemd/samba.sysconfig %{buildroot}%{_sysconfdir}/sys
 
 %if 0%{?fedora} > 15 || 0%{?rhel} > 6
 install -d -m 0755 %{buildroot}%{_unitdir}
-install -m 0644 packaging/systemd/nmb.service %{buildroot}%{_unitdir}/nmb.service
-install -m 0644 packaging/systemd/smb.service %{buildroot}%{_unitdir}/smb.service
-install -m 0644 packaging/systemd/winbind.service %{buildroot}%{_unitdir}/winbind.service
+for i in nmb smb winbind ; do
+    cat packaging/systemd/$i.service | sed -e 's at Type=forking at Type=forking\nEnvironment=KRB5CCNAME=/run/samba/krb5cc_samba at g' >tmp$i.service
+    install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service
+done
 %endif
 
 %if 0%{?rhel} == 6


More information about the scm-commits mailing list