More Flexible

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
This commit is contained in:
rieger::CLOUD
2018-09-20 20:58:10 +02:00
committed by GitHub
parent ac33964f09
commit 32339aa43e

View File

@@ -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