commit f3753414df3b61005e5654a4e0acf065d7011bff
Author: Arkadiusz Miśkiewicz <[email protected]>
Date: Wed Aug 26 22:16:07 2015 +0200
- rel 6; fix init script for types other than standard
nginx.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/nginx.spec b/nginx.spec
index 56ac722..1af8e09 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -38,7 +38,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.8.0
-Release: 5
+Release: 6
License: BSD-like
Group: Networking/Daemons/HTTP
Source0: http://nginx.org/download/%{name}-%{version}.tar.gz
@@ -432,11 +432,11 @@ cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/mime.types
install_build() {
local type=$1
- %{__sed} -e 's/@type@/standard/g' %{_sourcedir}/%{name}.conf \
+ %{__sed} -e "s/@type@/${type}/g" %{_sourcedir}/%{name}.conf \
> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-$type.conf
install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-$type
- %{__sed} -i -e 's/@type@/standard/g'
$RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-$type
+ %{__sed} -i -e "s/@type@/${type}/g"
$RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-$type
cp -p %{_sourcedir}/%{name}-$type.service
$RPM_BUILD_ROOT%{systemdunitdir}
cp -p %{_sourcedir}/%{name}-$type.monitrc $RPM_BUILD_ROOT/etc/monit
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nginx.git/commitdiff/f3753414df3b61005e5654a4e0acf065d7011bff
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit