Accepting request 1167864 from home:13ilya

- Added file nginx.tmpfiles.d for creation run-time directory.

OBS-URL: https://build.opensuse.org/request/show/1167864
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=256
This commit is contained in:
Илья Индиго 2024-04-15 18:37:48 +00:00 committed by Git OBS Bridge
parent ba0715088d
commit c8a60a67ca
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 15 18:28:09 UTC 2024 - Илья Индиго <13ilya@gmail.com>
- Added file nginx.tmpfiles.d for creation run-time directory.
-------------------------------------------------------------------
Sun Mar 3 10:24:27 UTC 2024 - Adam Mizerski <adam@mizerski.pl>

View File

@ -36,6 +36,7 @@ Source3: %{name}.rpmlintrc
Source4: %{name}.logrotate
Source5: %{name}.service
Source6: %{name}.sysusers
Source7: %{name}.tmpfiles.d
# PATCH-FIX-UPSTREAM nginx-1.11.2-no_Werror.patch
Patch0: %{name}-1.11.2-no_Werror.patch
# PATCH-FIX-OPENSUSE nginx-1.11.2-html.patch
@ -129,6 +130,7 @@ install -dpm0750 %{buildroot}%{ngx_home}/{,tmp,proxy,fastcgi,scgi,uwsgi}
install -Dpm0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -Dpm0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
install -Dpm0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
install -Dpm0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
rm %{buildroot}/srv/www/htdocs/index.html
@ -165,6 +167,7 @@ copydocs() {
%post
%service_add_post %{name}.service
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%postun
%service_del_postun %{name}.service
@ -213,6 +216,8 @@ copydocs() {
%{_unitdir}/%{name}.service
%{_sysusersdir}/%{name}.conf
%{_datadir}/%{name}/
%{_tmpfilesdir}/%{name}.conf
%ghost %dir /run/%{name}
%files source
%{src_install_dir}

1
nginx.tmpfiles.d Normal file
View File

@ -0,0 +1 @@
d /run/nginx 0755 nginx nginx -