# HG changeset patch # User Pascal Bellard # Date 1332771873 -7200 # Node ID 00b28dc6dcdbefc9c9e418fdbde84cdae852356d # Parent 0a6b5118575aaf9c8dd82d74f39f9114f3a235f1 apache: add default value for certificate diff -r 0a6b5118575a -r 00b28dc6dcdb apache/receipt --- a/apache/receipt Mon Mar 26 16:18:20 2012 +0200 +++ b/apache/receipt Mon Mar 26 16:24:33 2012 +0200 @@ -64,6 +64,9 @@ post_install() { + local lang=$(. /etc/locale.conf 2>/dev/null; echo ${LANG#*_}) + local tz=$(cat /etc/TZ 2>/dev/null) + local hostname=$(cat /etc/hostname 2>/dev/null) echo "Processing post-install commands..." # Just in case. chown www.www $1/var/log/$PACKAGE @@ -72,10 +75,10 @@ [ -s $1/etc/ssl/apache/apache.pem ] || openssl req -new -x509 -keyout $1/etc/ssl/apache/apache.pem \ -out $1/etc/ssl/apache/apache.pem -days 3650 -nodes <