mirror of
https://github.com/mtan93/install-nextcloud.git
synced 2026-03-08 21:02:46 +00:00
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:
@@ -2,8 +2,8 @@
|
|||||||
# Carsten Rieger IT-Services
|
# Carsten Rieger IT-Services
|
||||||
# SSL-CERTIFICATE.SH
|
# SSL-CERTIFICATE.SH
|
||||||
# Version 1.1
|
# Version 1.1
|
||||||
# July, 9th, 2018
|
# September, 20th, 2018
|
||||||
# Version 1.1: initial script
|
# Version 2.0
|
||||||
#######################################################
|
#######################################################
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
###global function to update and cleanup the environment
|
###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
|
###ensure that dhparam is commented as long it was not generated
|
||||||
sed -i s/ssl_dhparam/\#ssl_dhparam/g /etc/nginx/ssl.conf
|
sed -i s/ssl_dhparam/\#ssl_dhparam/g /etc/nginx/ssl.conf
|
||||||
###adjust Nextclous config.php to the new domain name
|
###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 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
|
#sudo -u www-data sed -in 's/'$YOURSERVERNAME'/'$DYNDNSNAME'/' /var/www/nextcloud/config/config.php
|
||||||
###restart the cloud environment
|
###restart the cloud environment
|
||||||
|
|||||||
Reference in New Issue
Block a user