diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-10 12:19:19 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-10 12:19:19 +0000 |
| commit | c82268523e28a998de4dce38b842b25c4ba4ffd2 (patch) | |
| tree | e32c719037aa82138ceb1319a27971ed0dee2f9f /testing/apache2/apache2-ssl.post-install | |
| parent | c0367e7f1e95ef668455892afc61ebbbc53a35d9 (diff) | |
| download | aports-c82268523e28a998de4dce38b842b25c4ba4ffd2.tar.bz2 aports-c82268523e28a998de4dce38b842b25c4ba4ffd2.tar.xz | |
main/apache2: moved from testing
fixes #392
Diffstat (limited to 'testing/apache2/apache2-ssl.post-install')
| -rw-r--r-- | testing/apache2/apache2-ssl.post-install | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/testing/apache2/apache2-ssl.post-install b/testing/apache2/apache2-ssl.post-install deleted file mode 100644 index d73b5fc622..0000000000 --- a/testing/apache2/apache2-ssl.post-install +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -ssldir=/etc/ssl/apache2 -sslkey=$ssldir/server.key -sslcert=$ssldir/server.pem - -umask 077 - -if [ ! -f ${sslkey} ] ; then - openssl genrsa -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime 1024 > ${sslkey} 2> /dev/null -fi - -FQDN=`hostname -f` -if [ "x${FQDN}" = "x" ]; then - FQDN=localhost.localdomain -fi - -if [ ! -f ${sslcert} ] ; then -cat << EOF | openssl req -new -key ${sslkey} \ - -x509 -days 365 -set_serial $RANDOM \ - -out ${sslcert} 2>/dev/null --- -SomeState -SomeCity -SomeOrganization -SomeOrganizationalUnit -${FQDN} -root@${FQDN} -EOF -fi - - |
