diff --git a/install/alternc.install b/install/alternc.install index 95060b7c..1da606a2 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -289,6 +289,22 @@ else ln -fs /etc/alternc/alternc.ini /etc/php$php/cli/conf.d/alternc.ini || true fi +#Set a default certificate if needed +make-ssl-cert generate-default-snakeoil +SNAKEOIL_SSLKEY=$( /etc/alternc/apache.pem +fi + +run-parts --arg=certificates /usr/lib/alternc/install.d + if [ -x /usr/sbin/apache2 ]; then # hook run-parts --arg=apache2 /usr/lib/alternc/install.d