Move temporary files from /var/run to /run to delete warning in installing
(cherry picked from commit c649e790f3562933ad8c5cc52a86e928303eccce)
This commit is contained in:
parent
946de49072
commit
0cdbda2e46
@ -5,7 +5,7 @@ Documentation=man:nslcd(8) man:nslcd.conf(5)
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/run/nslcd/nslcd.pid
|
PIDFile=/run/nslcd/nslcd.pid
|
||||||
ExecStart=/usr/sbin/nslcd
|
ExecStart=/usr/sbin/nslcd
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
# nslcd needs a directory in /var/run to store its pid file and socket
|
# nslcd needs a directory in /run to store its pid file and socket
|
||||||
d /var/run/nslcd 0775 nslcd root
|
d /run/nslcd 0775 nslcd root
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: nss-pam-ldapd
|
Name: nss-pam-ldapd
|
||||||
Version: 0.9.12
|
Version: 0.9.12
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: NSS and PAM libraries for name lookups and authentication using LDAP
|
Summary: NSS and PAM libraries for name lookups and authentication using LDAP
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://arthurdejong.org/nss-pam-ldapd/
|
URL: http://arthurdejong.org/nss-pam-ldapd/
|
||||||
@ -67,7 +67,7 @@ ln -s libnss_ldap.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_ldap.so
|
|||||||
sed -i -e 's,^uid.*,uid nslcd,g' -e 's,^gid.*,gid ldap,g' \
|
sed -i -e 's,^uid.*,uid nslcd,g' -e 's,^gid.*,gid ldap,g' \
|
||||||
$RPM_BUILD_ROOT/%{_sysconfdir}/nslcd.conf
|
$RPM_BUILD_ROOT/%{_sysconfdir}/nslcd.conf
|
||||||
touch -r nslcd.conf $RPM_BUILD_ROOT/%{_sysconfdir}/nslcd.conf
|
touch -r nslcd.conf $RPM_BUILD_ROOT/%{_sysconfdir}/nslcd.conf
|
||||||
mkdir -p -m 0755 $RPM_BUILD_ROOT/var/run/nslcd
|
mkdir -p -m 0755 $RPM_BUILD_ROOT/run/nslcd
|
||||||
mkdir -p -m 0755 $RPM_BUILD_ROOT/%{_tmpfilesdir}
|
mkdir -p -m 0755 $RPM_BUILD_ROOT/%{_tmpfilesdir}
|
||||||
install -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf
|
install -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf
|
||||||
|
|
||||||
@ -97,12 +97,18 @@ getent passwd nslcd > /dev/null || \
|
|||||||
%attr(0600,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/nslcd.conf
|
%attr(0600,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/nslcd.conf
|
||||||
%attr(0644,root,root) %config(noreplace) %{_tmpfilesdir}/%{name}.conf
|
%attr(0644,root,root) %config(noreplace) %{_tmpfilesdir}/%{name}.conf
|
||||||
%config(noreplace) %{_unitdir}/nslcd.service
|
%config(noreplace) %{_unitdir}/nslcd.service
|
||||||
%attr(0775,nslcd,root) /var/run/nslcd
|
%attr(0775,nslcd,root) /run/nslcd
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 5 2025 yixiangzhike <yixiangzhike007@163.com> - 0.9.12-6
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Move temporary files from /var/run to /run to delete warning in installing
|
||||||
|
|
||||||
* Thu Oct 24 2024 yixiangzhike <yixiangzhike007@163.com> - 0.9.12-5
|
* Thu Oct 24 2024 yixiangzhike <yixiangzhike007@163.com> - 0.9.12-5
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user