Skip to content

Commit

Permalink
nc-backup: fix space check error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Jul 20, 2018
1 parent b81b3e6 commit baaf79a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 5 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit baaf79a

Please sign in to comment.