Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'updates/1.42.0.sh')
-rw-r--r--updates/1.42.0.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/updates/1.42.0.sh b/updates/1.42.0.sh
index 74e1b34b..3471d852 100644
--- a/updates/1.42.0.sh
+++ b/updates/1.42.0.sh
@@ -15,6 +15,14 @@ run_app nc-notify-updates
# update nc-backup
install_app nc-backup
+# fix ncp.conf bug if LE is disabled
+if ! is_active_app letsencrypt; then
+ if [[ -f /etc/apache2/sites-enabled/ncp.conf ]]; then
+ sed -i "s|SSLCertificateFile.*|SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem|" /etc/apache2/sites-enabled/ncp.conf
+ sed -i "s|SSLCertificateKeyFile.*|SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key|" /etc/apache2/sites-enabled/ncp.conf
+ fi
+fi
+
# docker images only
[[ -f /.docker-image ]] && {
: