[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#225487: apache-ssl: Postinstall fails with a "sed" error



Hi Fabio-

This patch fixes the problem and allows me to generate the cert.

doug@hades:~$ diff -ur make-ssl-cert.orig make-ssl-cert
--- make-ssl-cert.orig  2003-12-31 12:51:49.000000000 -0500
+++ make-ssl-cert       2003-12-31 12:52:18.000000000 -0500
@@ -97,13 +97,13 @@
 Email="$RET"
 db_fset make-ssl-cert/email seen false
  
-sed -e s,@CountryName@,"$CountryName", \
-    -e s,@StateName@,"$StateName", \
-    -e s,@LocalityName@,"$LocalityName", \
-    -e s,@OrganisationName@,"$OrganisationName", \
-    -e s,@OUName@,"$OUName", \
-    -e s,@HostName@,"$HostName", \
-    -e s,@Email@,"$Email", \
+sed -e s/@CountryName@/"$CountryName"/ \
+    -e s/@StateName@/"$StateName"/ \
+    -e s/@LocalityName@/"$LocalityName"/ \
+    -e s/@OrganisationName@/"$OrganisationName"/ \
+    -e s/@OUName@/"$OUName"/ \
+    -e s/@HostName@/"$HostName"/ \
+    -e s/@Email@/"$Email"/ \
     $template > /tmp/$$.req
  
 export RANDFILE=/dev/random

...but I now get an error regarding the cert request:

hades:/etc/apache-ssl# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache-ssl (1.3.29.0.1-3) ...
+ make_selfsigned_cert
+ '[' '!' -f /etc/apache-ssl/apache.pem ']'
+ /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf
/etc/apache-ssl/apache.pem
Generating a 1024 bit RSA private key
.................................++++++
...++++++
writing new private key to '/etc/apache-ssl/apache.pem'
-----
problems making Certificate Request
5332:error:0D07A098:asn1 encoding routines:ASN1_mbstring_copy:string too
short:a_mbstr.c:147:minsize=1
dpkg: error processing apache-ssl (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 apache-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)

...and when I run 'apt-get -f install' again:

Starting web server: apache-sslProcessing config directory:
/etc/apache-ssl/conf.d
 failed
invoke-rc.d: initscript apache-ssl, action "start" failed.
dpkg: error processing apache-ssl (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 apache-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)
hades:/etc/apache-ssl#

I attached the output with 'set -x' in the postinstall script, as it was
rather large - this is with the above patch applied.

Regards,

Doug

Script started on Wed Dec 31 12:59:03 2003
hades:/etc/apache-ssl# apt-get -f install
...
Setting up apache-ssl (1.3.29.0.1-3) ...
+ make_selfsigned_cert
+ '[' '!' -f /etc/apache-ssl/apache.pem ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/apache-ssl.postinst configure ''
+ make_selfsigned_cert
+ '[' '!' -f /etc/apache-ssl/apache.pem ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
++ _old_opts=configure 
++ set -- capb CAPB
++ eval 'db_capb () {
		echo "CAPB $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- set SET
++ eval 'db_set () {
		echo "SET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- reset RESET
++ eval 'db_reset () {
		echo "RESET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- title TITLE
++ eval 'db_title () {
		echo "TITLE $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- input INPUT
++ eval 'db_input () {
		echo "INPUT $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- beginblock BEGINBLOCK
++ eval 'db_beginblock () {
		echo "BEGINBLOCK $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- endblock ENDBLOCK
++ eval 'db_endblock () {
		echo "ENDBLOCK $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- go GO
++ eval 'db_go () {
		echo "GO $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- get GET
++ eval 'db_get () {
		echo "GET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- register REGISTER
++ eval 'db_register () {
		echo "REGISTER $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- unregister UNREGISTER
++ eval 'db_unregister () {
		echo "UNREGISTER $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- subst SUBST
++ eval 'db_subst () {
		echo "SUBST $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- previous_module PREVIOUS_MODULE
++ eval 'db_previous_module () {
		echo "PREVIOUS_MODULE $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- fset FSET
++ eval 'db_fset () {
		echo "FSET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- fget FGET
++ eval 'db_fget () {
		echo "FGET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- purge PURGE
++ eval 'db_purge () {
		echo "PURGE $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- metaget METAGET
++ eval 'db_metaget () {
		echo "METAGET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- version VERSION
++ eval 'db_version () {
		echo "VERSION $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- clear CLEAR
++ eval 'db_clear () {
		echo "CLEAR $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- settitle SETTITLE
++ eval 'db_settitle () {
		echo "SETTITLE $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- configure
++ unset _old_opts
+ echo 'Before postinst\n'
Before postinst\n
+ . /usr/share/apache/postinst.common
+ echo 'after postinst\n'
after postinst\n
+ '[' configure '!=' configure ']'
+ HIDE=
+ '[' '' '!=' '' ']'
+ UPGRADE=false
+ /usr/sbin/modules-config apache-ssl internal
+ '[' false '!=' true ']'
+ add_webmaster_alias
+ '[' -e /etc/aliases ']'
+ grep -qi '^webmaster:' /etc/aliases
+ do_all apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ do_debconf_configs apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
++ /usr/share/apache/listconffiles /etc/apache-ssl/httpd.conf
+ CONFS=/etc/apache-ssl/httpd.conf /etc/apache-ssl/modules.conf 
+ '[' '!' '' ']'
++ pget /etc/apache-ssl/httpd.conf servername
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ SERNAME=localhost
+ '[' '!' '' ']'
++ pget /etc/apache-ssl/httpd.conf serveradmin
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*serveradmin/i}'
++ tail -n 1
++ awk '{print $2}'
+ SERADMIN=you@your.address
+ '[' '!' '' ']'
++ pget /etc/apache-ssl/httpd.conf documentroot
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*documentroot/i}'
++ tail -n 1
++ awk '{print $2}'
+ DOCROOT=/var/www
+ '[' apache-ssl '!=' apache-ssl ']'
+ '[' '!' localhost ']'
+ '[' '!' you@your.address ']'
+ '[' '!' /var/www ']'
+ '[' apache-ssl '!=' apache-ssl ']'
+ '[' '!' localhost ']'
+ db_set apache-ssl/server-name localhost
+ echo 'SET apache-ssl/server-name' localhost
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ db_set apache-ssl/server-admin you@your.address
+ echo 'SET apache-ssl/server-admin' you@your.address
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ db_set apache-ssl/document-root /var/www
+ echo 'SET apache-ssl/document-root' /var/www
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ '[' apache-ssl '!=' apache-ssl ']'
+ db_input low apache-ssl/server-name
+ echo 'INPUT low' apache-ssl/server-name
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=30 question skipped
+ return 30
+ true
+ db_input low apache-ssl/server-admin
+ echo 'INPUT low' apache-ssl/server-admin
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=30 question skipped
+ return 30
+ true
+ db_input low apache-ssl/document-root
+ echo 'INPUT low' apache-ssl/document-root
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=30 question skipped
+ return 30
+ true
+ '[' apache-ssl '!=' apache-ssl ']'
+ db_go
+ echo 'GO '
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=ok
+ return 0
+ db_get apache-ssl/server-name
+ echo 'GET apache-ssl/server-name'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=localhost
+ return 0
+ SERNAME=localhost
+ db_get apache-ssl/server-admin
+ echo 'GET apache-ssl/server-admin'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=you@your.address
+ return 0
++ echo you@your.address
++ sed -e 's/\./\\./g'
++ sed -e 's/\@/\\@/g'
+ SERADMIN=you\@your\.address
+ db_get apache-ssl/document-root
+ echo 'GET apache-ssl/document-root'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=/var/www
+ return 0
+ DOCROOT=/var/www
+ '[' apache-ssl '!=' apache-ssl ']'
+ PORT=443
++ /usr/share/apache/listconffiles /etc/apache-ssl/httpd.conf
+ CONFS=/etc/apache-ssl/httpd.conf /etc/apache-ssl/modules.conf 
+ doblackmagic=true
++ pget /etc/apache-ssl/httpd.conf servername
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=localhost
+ '[' localhost ']'
+ pset /etc/apache-ssl/httpd.conf ServerName localhost
+ cat /etc/apache-ssl/httpd.conf
+ perl -e ' OUTER: while (<>) { if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ print; INNER: while (<>)
 { print; next INNER until /<\/virtualhost/i }};
 if ( ! /^\s*#/ ) {s,^\s*ServerName.*,ServerName localhost,i;} print}'
+ mv -f /etc/apache-ssl/httpd.conf.tmp /etc/apache-ssl/httpd.conf
+ doblackmagic=false
++ pget /etc/apache-ssl/httpd.conf serveradmin
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*serveradmin/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=you@your.address
+ '[' you@your.address ']'
+ pset /etc/apache-ssl/httpd.conf ServerAdmin 'you\@your\.address'
+ cat /etc/apache-ssl/httpd.conf
+ perl -e ' OUTER: while (<>) { if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ print; INNER: while (<>)
 { print; next INNER until /<\/virtualhost/i }};
 if ( ! /^\s*#/ ) {s,^\s*ServerAdmin.*,ServerAdmin you\@your\.address,i;} print}'
+ mv -f /etc/apache-ssl/httpd.conf.tmp /etc/apache-ssl/httpd.conf
++ pget /etc/apache-ssl/httpd.conf documentroot
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*documentroot/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=/var/www
+ '[' /var/www ']'
+ pset /etc/apache-ssl/httpd.conf DocumentRoot /var/www
+ cat /etc/apache-ssl/httpd.conf
+ perl -e ' OUTER: while (<>) { if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ print; INNER: while (<>)
 { print; next INNER until /<\/virtualhost/i }};
 if ( ! /^\s*#/ ) {s,^\s*DocumentRoot.*,DocumentRoot /var/www,i;} print}'
+ mv -f /etc/apache-ssl/httpd.conf.tmp /etc/apache-ssl/httpd.conf
++ pget /etc/apache-ssl/httpd.conf port
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*port/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=443
+ '[' 443 ']'
+ pset /etc/apache-ssl/httpd.conf Port 443
+ cat /etc/apache-ssl/httpd.conf
+ perl -e ' OUTER: while (<>) { if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ print; INNER: while (<>)
 { print; next INNER until /<\/virtualhost/i }};
 if ( ! /^\s*#/ ) {s,^\s*Port.*,Port 443,i;} print}'
+ mv -f /etc/apache-ssl/httpd.conf.tmp /etc/apache-ssl/httpd.conf
++ pget /etc/apache-ssl/modules.conf servername
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=
+ '[' '' ']'
++ pget /etc/apache-ssl/modules.conf serveradmin
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*serveradmin/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=
+ '[' '' ']'
++ pget /etc/apache-ssl/modules.conf documentroot
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*documentroot/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=
+ '[' '' ']'
++ pget /etc/apache-ssl/modules.conf port
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*port/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=
+ '[' '' ']'
+ '[' false = true ']'
+ fix_pid apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
++ grep '^PidFile /var/run/apache-ssl.pid' /etc/apache-ssl/httpd.conf
+ '[' '!' 'PidFile /var/run/apache-ssl.pid' ']'
+ check_start apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ db_get apache-ssl/init
+ echo 'GET apache-ssl/init'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=true
+ return 0
+ echo start_at_boot=true
+ '[' -e /etc/apache-ssl/apache_not_to_be_run ']'
+ add_magic_loadmodule_line apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ '[' -f /etc/apache-ssl/httpd.conf ']'
+ grep -q LoadModule: /etc/apache-ssl/httpd.conf
+ comment_out_adddefaultcharset apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ '[' -f /etc/apache-ssl/srm.conf ']'
+ grep -q '^[ 	]*AddDefaultCharsetName' /etc/apache-ssl/srm.conf
+ link_mime_types apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ '[' '!' -e /etc/apache-ssl/mime.types ']'
+ check_logs_outside_var_log apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
++ /usr/share/apache/listconffiles /etc/apache-ssl/httpd.conf
+ CONFS=/etc/apache-ssl/httpd.conf /etc/apache-ssl/modules.conf 
+ '[' '/etc/apache-ssl/httpd.conf /etc/apache-ssl/modules.conf ' ']'
++ awk '$1 == "ServerRoot" { print $2; exit }' /etc/apache-ssl/httpd.conf /etc/apache-ssl/modules.conf
+ SERVERROOT=/etc/apache-ssl
++ awk '$1 ~ /^\s*[A-Za-z]*Log$/ {print $2}' /etc/apache-ssl/httpd.conf /etc/apache-ssl/modules.conf
++ grep -v '|'
++ sort -u
+ LOGS=/var/log/apache-ssl/access.log
/var/log/apache-ssl/error.log
/var/log/apache-ssl/ssl.log
+ BAD_LOG=0
++ echo /var/log/apache-ssl/access.log
+ i=/var/log/apache-ssl/access.log
+ i=access.log
+ '[' 0 = 1 ']'
++ echo /var/log/apache-ssl/error.log
+ i=/var/log/apache-ssl/error.log
+ i=error.log
+ '[' 0 = 1 ']'
++ echo /var/log/apache-ssl/ssl.log
+ i=/var/log/apache-ssl/ssl.log
+ i=ssl.log
+ '[' 0 = 1 ']'
+ '[' 0 = 1 ']'
+ remove_savelog_setup apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ KNOWN_MD5SUMS=0046dde8f24968114cef88e76c37d339 e8f560b16b76c04ab8c61ee2f53de737 ecbc4d14566e32bdbe16075c752c3cde
+ '[' -f /etc/cron.daily/apache-ssl ']'
+ '[' -f /etc/apache-ssl/cron.conf ']'
+ link_suexec apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ db_get apache-ssl/enable-suexec
+ echo 'GET apache-ssl/enable-suexec'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=false
+ return 0
+ cd /usr/lib/apache-ssl
+ '[' false = true ']'
++ readlink suexec
+ '[' -L suexec -a '' = suexec.disabled ']'
+ suggested_corrections apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ corfile=/etc/apache-ssl/suggested_corrections
+ rm -f /etc/apache-ssl/suggested_corrections
++ /usr/share/apache/listconffiles /etc/apache-ssl/httpd.conf
+ CONFS=/etc/apache-ssl/httpd.conf /etc/apache-ssl/modules.conf 
++ pget /etc/apache-ssl/httpd.conf 'Alias \/icons\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*Alias \/icons\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ icons=/usr/share/apache/icons/
+ '[' /usr/share/apache/icons/ ']'
+ '[' /usr/share/apache/icons/ '!=' /usr/share/apache/icons/ ']'
++ pget /etc/apache-ssl/httpd.conf 'ScriptAlias \/cgi-bin\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*ScriptAlias \/cgi-bin\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ scripts=/usr/lib/cgi-bin/
+ '[' /usr/lib/cgi-bin/ ']'
+ '[' /usr/lib/cgi-bin/ '!=' /usr/lib/cgi-bin/ ']'
++ pget /etc/apache-ssl/httpd.conf 'Alias \/doc\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*Alias \/doc\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ docs=/usr/share/doc/
+ '[' /usr/share/doc/ ']'
+ '[' /usr/share/doc/ '!=' /usr/share/doc/ ']'
++ pget /etc/apache-ssl/modules.conf 'Alias \/icons\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*Alias \/icons\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ icons=
+ '[' '' ']'
++ pget /etc/apache-ssl/modules.conf 'ScriptAlias \/cgi-bin\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*ScriptAlias \/cgi-bin\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ scripts=
+ '[' '' ']'
++ pget /etc/apache-ssl/modules.conf 'Alias \/doc\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*Alias \/doc\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ docs=
+ '[' '' ']'
+ defaultindex apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ '[' '!' -d /var/www ']'
+ install_suexec_limit apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ '[' '!' -e /etc/apache-ssl/suexec.limits ']'
+ add_conf_d apache-ssl
+ '[' 1 -ne 1 ']'
+ pkg=apache-ssl
+ grep -qs 'Include /etc/apache-ssl/conf.d' /etc/apache-ssl/httpd.conf
+ db_stop
+ echo STOP
+ '[' configure = configure ']'
+ which install-docs
+ '[' -x /etc/init.d/apache-ssl ']'
+ update-rc.d apache-ssl defaults 91
+ '[' -x /usr/sbin/invoke-rc.d ']'
+ invoke-rc.d apache-ssl start
Starting web server: apache-sslProcessing config directory: /etc/apache-ssl/conf.d
 failed
invoke-rc.d: initscript apache-ssl, action "start" failed.
dpkg: error processing apache-ssl (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 apache-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply to: