diff --git a/ssl-certificate.sh b/ssl-certificate.sh index f3918e2..7baaa60 100644 --- a/ssl-certificate.sh +++ b/ssl-certificate.sh @@ -2,8 +2,8 @@ # Carsten Rieger IT-Services # SSL-CERTIFICATE.SH # Version 1.1 -# July, 9th, 2018 -# Version 1.1: initial script +# September, 20th, 2018 +# Version 2.0 ####################################################### #!/bin/bash ###global function to update and cleanup the environment @@ -66,6 +66,7 @@ sed -i s/\#\ssl/\ssl/g /etc/nginx/ssl.conf ###ensure that dhparam is commented as long it was not generated sed -i s/ssl_dhparam/\#ssl_dhparam/g /etc/nginx/ssl.conf ###adjust Nextclous config.php to the new domain name +sudo -u www-data php /var/www/nextcloud/occ config:system:set trusted_domains 1 --value=$DYNDNSNAME sudo -u www-data php /var/www/nextcloud/occ config:system:set overwrite.cli.url --value=https://$DYNDNSNAME #sudo -u www-data sed -in 's/'$YOURSERVERNAME'/'$DYNDNSNAME'/' /var/www/nextcloud/config/config.php ###restart the cloud environment