diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-07-20 18:30:54 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-07-20 18:33:39 +0300 |
commit | baaf79a3015c7092498eb11cde1d94e562814d45 (patch) | |
tree | a6766e9549d9c397a0270b8beaed40e024ce85e6 | |
parent | b81b3e6753f81fc14ad4fff153e9882b9dad183f (diff) |
nc-backup: fix space check error messagev0.57.19
-rw-r--r-- | changelog.md | 4 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-backup.sh | 2 | ||||
-rwxr-xr-x | update.sh | 5 |
3 files changed, 9 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md index 670aa585..325863db 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v0.57.18](https://github.com/nextcloud/nextcloudpi/commit/7c2457e) (2018-07-13) fix ncc command repeating itself +[v0.57.19](https://github.com/nextcloud/nextcloudpi/commit/acb7114) (2018-07-20) nc-backup: fix space check error message + +[v0.57.18](https://github.com/nextcloud/nextcloudpi/commit/7985f48) (2018-07-13) fix ncc command repeating itself [v0.57.17](https://github.com/nextcloud/nextcloudpi/commit/baa2fa2) (2018-07-03) armbian: fix image tag preventing updates diff --git a/etc/ncp-config.d/nc-backup.sh b/etc/ncp-config.d/nc-backup.sh index 5758a2b9..e7b9f535 100644 --- a/etc/ncp-config.d/nc-backup.sh +++ b/etc/ncp-config.d/nc-backup.sh @@ -45,7 +45,7 @@ mkdir -p "$DESTDIR" FREE=$( df "$DESTDIR" | tail -1 | awk '{ print $4 }' ) [ $SIZE -ge $FREE ] && { - echo "free space check failed. Need $( du -sh "$DATADIR" | awk '{ print $1 }' )"; + echo "free space check failed. Need $SIZE Bytes"; exit 1; } @@ -284,6 +284,11 @@ EOF # fix udiskie not correctly installed type udiskie &> /dev/null || apt-get install -y --no-install-recommends udiskie inotify-tools + # update nc-backup + cd "$CONFDIR" &>/dev/null + install_script nc-backup.sh + cd - &>/dev/null + } # end - only live updates exit 0 |