Skip to content

Commit

Permalink
update: check existence ncp.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Nov 16, 2017
1 parent 95240ca commit ba76566
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 4 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba76566

Please sign in to comment.