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:
parent
ba0715088d
commit
c8a60a67ca
@ -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>
|
Sun Mar 3 10:24:27 UTC 2024 - Adam Mizerski <adam@mizerski.pl>
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ Source3: %{name}.rpmlintrc
|
|||||||
Source4: %{name}.logrotate
|
Source4: %{name}.logrotate
|
||||||
Source5: %{name}.service
|
Source5: %{name}.service
|
||||||
Source6: %{name}.sysusers
|
Source6: %{name}.sysusers
|
||||||
|
Source7: %{name}.tmpfiles.d
|
||||||
# PATCH-FIX-UPSTREAM nginx-1.11.2-no_Werror.patch
|
# PATCH-FIX-UPSTREAM nginx-1.11.2-no_Werror.patch
|
||||||
Patch0: %{name}-1.11.2-no_Werror.patch
|
Patch0: %{name}-1.11.2-no_Werror.patch
|
||||||
# PATCH-FIX-OPENSUSE nginx-1.11.2-html.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 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||||
install -Dpm0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
|
install -Dpm0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
install -Dpm0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
|
install -Dpm0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
|
||||||
|
install -Dpm0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||||
|
|
||||||
rm %{buildroot}/srv/www/htdocs/index.html
|
rm %{buildroot}/srv/www/htdocs/index.html
|
||||||
@ -165,6 +167,7 @@ copydocs() {
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
|
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%service_del_postun %{name}.service
|
%service_del_postun %{name}.service
|
||||||
@ -213,6 +216,8 @@ copydocs() {
|
|||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
%{_sysusersdir}/%{name}.conf
|
%{_sysusersdir}/%{name}.conf
|
||||||
%{_datadir}/%{name}/
|
%{_datadir}/%{name}/
|
||||||
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
|
%ghost %dir /run/%{name}
|
||||||
|
|
||||||
%files source
|
%files source
|
||||||
%{src_install_dir}
|
%{src_install_dir}
|
||||||
|
1
nginx.tmpfiles.d
Normal file
1
nginx.tmpfiles.d
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /run/nginx 0755 nginx nginx -
|
Loading…
x
Reference in New Issue
Block a user