Mediagoblin cert generation

This commit is contained in:
Bob Mottram 2015-03-25 20:03:08 +00:00
parent 6e9d57c188
commit a3c2e201da
1 changed files with 9 additions and 0 deletions

View File

@ -8457,6 +8457,15 @@ function install_mediagoblin {
echo ' }' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
echo '}' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME echo '}' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
if [ ! -f /etc/ssl/certs/$MEDIAGOBLIN_DOMAIN_NAME.dhparam ]; then
makecert $MEDIAGOBLIN_DOMAIN_NAME
check_certificates $MEDIAGOBLIN_DOMAIN_NAME
fi
nginx_ensite $MEDIAGOBLIN_DOMAIN_NAME
service php5-fpm restart
service nginx restart
# update the dynamic DNS # update the dynamic DNS
CURRENT_DDNS_DOMAIN=$MEDIAGOBLIN_DOMAIN_NAME CURRENT_DDNS_DOMAIN=$MEDIAGOBLIN_DOMAIN_NAME
add_ddns_domain add_ddns_domain