Mediagoblin cert generation
This commit is contained in:
parent
6e9d57c188
commit
a3c2e201da
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue