From: Graham Leggett Date: Mon, 9 May 2011 17:02:29 +0000 (+0000) Subject: rpm spec file: Remove reference to ssl.key and ssl.crt directories in line X-Git-Tag: 2.2.19~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f8865e197af51c4d34c4be4e50ae710bf0fc850;p=thirdparty%2Fapache%2Fhttpd.git rpm spec file: Remove reference to ssl.key and ssl.crt directories in line with httpd-trunk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1101112 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/rpm/httpd.spec.in b/build/rpm/httpd.spec.in index 9a012d2e192..240a93cb3ef 100644 --- a/build/rpm/httpd.spec.in +++ b/build/rpm/httpd.spec.in @@ -215,8 +215,8 @@ fi %post -n mod_ssl umask 077 -if [ ! -f %{_sysconfdir}/httpd/conf/ssl.key/server.key ] ; then -%{_bindir}/openssl genrsa -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime 1024 > %{_sysconfdir}/httpd/conf/ssl.key/server.key 2> /dev/null +if [ ! -f %{_sysconfdir}/httpd/conf/server.key ] ; then +%{_bindir}/openssl genrsa -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime 1024 > %{_sysconfdir}/httpd/conf/server.key 2> /dev/null fi FQDN=`hostname` @@ -224,8 +224,8 @@ if [ "x${FQDN}" = "x" ]; then FQDN=localhost.localdomain fi -if [ ! -f %{_sysconfdir}/httpd/conf/ssl.crt/server.crt ] ; then -cat << EOF | %{_bindir}/openssl req -new -key %{_sysconfdir}/httpd/conf/ssl.key/server.key -x509 -days 365 -out %{_sysconfdir}/httpd/conf/ssl.crt/server.crt 2>/dev/null +if [ ! -f %{_sysconfdir}/httpd/conf/server.crt ] ; then +cat << EOF | %{_bindir}/openssl req -new -key %{_sysconfdir}/httpd/conf/server.key -x509 -days 365 -out %{_sysconfdir}/httpd/conf/server.crt 2>/dev/null -- SomeState SomeCity