From d76745a704beb652dd83e354e29c3f4ac860ff42 Mon Sep 17 00:00:00 2001 From: "rieger::CLOUD" Date: Wed, 9 Jan 2019 14:54:00 +0100 Subject: [PATCH] Ready for PHP 7.3 --- ssl-certificate-ubuntu.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ssl-certificate-ubuntu.sh b/ssl-certificate-ubuntu.sh index 33e2bc7..096a58d 100644 --- a/ssl-certificate-ubuntu.sh +++ b/ssl-certificate-ubuntu.sh @@ -27,11 +27,14 @@ cp /var/www/nextcloud/config/config.php /var/www/nextcloud/config/config.php.ori ###global function to show an error message if the certificate request would fail function errorSSL() { clear -echo "*** ERROR while requeting your certificate(s) ***" +echo "!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!" +echo "*** ERROR while requesting your certificate(s) ***" echo "" echo "Verify that both ports (80 + 443) are forwarded to this server!" echo "And verify, your dyndns points to your IP either!" echo "Then retry..." +echo "!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!" +echo "" } ###add the letsencrypt repository to the server add-apt-repository ppa:certbot/certbot -y @@ -66,7 +69,6 @@ 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 restart_all_services clear