On 11/03/2019 23.24, Elan Ruusamäe wrote: > why not /etc/nginx/conf.avail like rest of the debian/ubuntu world lives?
/etc/nginx/snippets is exactly how Debian does that. # dpkg -S /etc/nginx/snippets ; echo ; grep NAME /etc/os-release nginx-common: /etc/nginx/snippets PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" Jacek > > > On 11/03/2019 16:50, arekm wrote: >> >> commit 924400caa957d83ab7d2899775b761d54567c86d >> Author: Arkadiusz Miśkiewicz <ar...@maven.pl> >> Date: Mon Mar 11 15:50:38 2019 +0100 >> >> - rel 3; provide /etc/nginx/snippets dir for custom config chunks >> that are not included anywhere by default (but can be included by admin) >> >> nginx.spec | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> --- >> diff --git a/nginx.spec b/nginx.spec >> index 8c7ddd4..e878939 100644 >> --- a/nginx.spec >> +++ b/nginx.spec >> @@ -44,7 +44,7 @@ Summary(pl.UTF-8): Serwer HTTP i odwrotne proxy o >> wysokiej wydajności >> # - mainline: production quality but API can change >> Name: nginx >> Version: 1.15.9 >> -Release: 2 >> +Release: 3 >> License: BSD-like >> Group: Networking/Daemons/HTTP >> Source0: http://nginx.org/download/%{name}-%{version}.tar.gz >> @@ -351,6 +351,7 @@ install -d $RPM_BUILD_ROOT/etc/rc.d/init.d \ >> $RPM_BUILD_ROOT%{_localstatedir}/cache/%{name} \ >> $RPM_BUILD_ROOT%{_localstatedir}/lock/subsys/%{name} \ >> >> $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/{conf,modules,vhosts,webapps}.d} >> \ >> + $RPM_BUILD_ROOT%{_sysconfdir}/snippets \ >> $RPM_BUILD_ROOT/etc/{logrotate.d,monit} \ >> $RPM_BUILD_ROOT{%{systemdunitdir},/etc/systemd/system} >> @@ -456,6 +457,7 @@ fi >> %dir %attr(750,root,nginx) %{_sysconfdir} >> %dir %{_sysconfdir}/conf.d >> %dir %{_sysconfdir}/modules.d >> +%dir %{_sysconfdir}/snippets >> %dir %{_sysconfdir}/vhosts.d >> %dir %{_sysconfdir}/webapps.d >> %attr(640,root,root) %{_sysconfdir}/mime.types >> ================================================================ >> >> ---- gitweb: >> >> http://git.pld-linux.org/gitweb.cgi/packages/nginx.git/commitdiff/924400caa957d83ab7d2899775b761d54567c86d >> >> >> _______________________________________________ >> pld-cvs-commit mailing list >> pld-cvs-com...@lists.pld-linux.org >> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit > _______________________________________________ > pld-devel-en mailing list > pld-devel-en@lists.pld-linux.org > http://lists.pld-linux.org/mailman/listinfo/pld-devel-en _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en