diff --git a/ssl/gen-ssl-templates.sh b/ssl/gen-ssl-templates.sh new file mode 100755 index 00000000..8fd6553a --- /dev/null +++ b/ssl/gen-ssl-templates.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# this script regenerate the SSL-* templates from the ORIGINAL non-ssl in parent folder +# launch it if you know that some templates has been changed in parent folder. + +function convert { + src=$1 + dst=$2 + cat $src | + sed -e 's#:80#:443#' \ + -e "s## SSLEngine On\n SSLCertificateFile %%CRT%%\n SSLCertificateKeyFile %%KEY%%\n %%CHAINLINE%%\n\n#i" \ + >$dst +} +for template in panel url vhost +do + convert "../etc/alternc/templates/apache2/${template}.conf" "templates/${template}-ssl.conf" +done + +convert "../roundcube/templates/apache2/roundcube.conf" "templates/roundcube-ssl.conf" +convert "../squirrelmail/templates/apache2/squirrelmail.conf" "templates/squirrelmail-ssl.conf" diff --git a/ssl/hosting_vhost-ssl.sh b/ssl/hosting_vhost-ssl.sh index 2fd2370f..917d2102 100755 --- a/ssl/hosting_vhost-ssl.sh +++ b/ssl/hosting_vhost-ssl.sh @@ -1,17 +1,23 @@ -#!/bin/bash +#!/usr/bin/php +" /> +

+ NOT shared"); @@ -190,6 +194,10 @@ if ($cert["status"] == $ssl::STATUS_PENDING) { " /> +

+ +