diff options
-rw-r--r-- | etc/nextcloudpi-config.d/letsencrypt.sh | 2 | ||||
-rw-r--r-- | nextcloudpi.sh | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/etc/nextcloudpi-config.d/letsencrypt.sh b/etc/nextcloudpi-config.d/letsencrypt.sh index a80ada97..28115bbe 100644 --- a/etc/nextcloudpi-config.d/letsencrypt.sh +++ b/etc/nextcloudpi-config.d/letsencrypt.sh @@ -45,7 +45,7 @@ configure() sed -i "s|ServerName .*|ServerName $DOMAIN_|" $VHOSTCFG_ || \ sed -i "/DocumentRoot/aServerName $DOMAIN_" $VHOSTCFG_ - /etc/letsencrypt/letsencrypt-auto -n --no-self-upgrade --apache --hsts --agree-tos -m $EMAIL_ -d $DOMAIN_ + /etc/letsencrypt/letsencrypt-auto -n --no-self-upgrade --apache --hsts --agree-tos -m $EMAIL_ -d $DOMAIN_ || return 1 echo "* 1 * * 1 root /etc/letsencrypt/certbot-auto renew --quiet" > /etc/cron.d/letsencrypt-ncp cd /var/www/nextcloud diff --git a/nextcloudpi.sh b/nextcloudpi.sh index 1037fafa..bd9586e6 100644 --- a/nextcloudpi.sh +++ b/nextcloudpi.sh @@ -34,17 +34,6 @@ install() # NEXTCLOUDPI-CONFIG WEB ########################################## cat > /etc/apache2/sites-available/ncp.conf <<'EOF' -Listen 8089 -<VirtualHost _default_:8089> - DocumentRoot /var/www/ncp-web -</VirtualHost> -<Directory /var/www/ncp-web/> - Require host localhost - Require ip 127.0.0.1 - Require ip 192.168 - Require ip 10 -</Directory> - Listen 4443 <VirtualHost _default_:4443> DocumentRoot /var/www/ncp-web |