From ba765664f7ac9bdda466c39d2253fefafb320d78 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Thu, 16 Nov 2017 19:51:47 +0100 Subject: update: check existence ncp.conf --- changelog.md | 4 +++- update.sh | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 1fba55a7..469359f7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v0.34.14](https://github.com/nextcloud/nextcloudpi/commit/723d51b) (2017-11-16) update: check return code +[v0.34.15](https://github.com/nextcloud/nextcloudpi/commit/97febf5) (2017-11-16) update: check existence ncp.conf + +[v0.34.14](https://github.com/nextcloud/nextcloudpi/commit/206b6de) (2017-11-16) update: check return code [v0.34.13](https://github.com/nextcloud/nextcloudpi/commit/29109ba) (2017-11-16) improve IP detection diff --git a/update.sh b/update.sh index f7625547..85255249 100755 --- a/update.sh +++ b/update.sh @@ -165,8 +165,10 @@ exit $RET EOF # 2 days to avoid very big backups requests to timeout - grep -q TimeOut /etc/apache2/sites-enabled/ncp.conf || \ - sed -i '/SSLCertificateKeyFile/aTimeOut 172800' /etc/apache2/sites-enabled/ncp.conf + test -f /etc/apache2/sites-enabled/ncp.conf && { + grep -q TimeOut /etc/apache2/sites-enabled/ncp.conf || \ + sed -i '/SSLCertificateKeyFile/aTimeOut 172800' /etc/apache2/sites-enabled/ncp.conf + } || true # relocate noip2 config mkdir -p /usr/local/etc/noip2 -- cgit v1.2.3