mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-01 16:57:57 +00:00
Add timeout to prevent rsync from hanging
This commit is contained in:
parent
071ee3dcf4
commit
83931a0915
@ -19,6 +19,6 @@ mv "$DOCKER_ROOT/graph/$dest_id/json.tmp" "$DOCKER_ROOT/graph/$dest_id/json"
|
||||
btrfs subvolume delete "$BTRFS_ROOT/$dest_id"
|
||||
btrfs subvolume snapshot "$BTRFS_ROOT/$src_id" "$BTRFS_ROOT/$dest_id"
|
||||
|
||||
rsync --archive --delete --read-batch=- "$BTRFS_ROOT/$dest_id"
|
||||
rsync --timeout=30 --archive --delete --read-batch=- "$BTRFS_ROOT/$dest_id"
|
||||
|
||||
docker tag -f "$dest_id" "$dest"
|
||||
|
Loading…
x
Reference in New Issue
Block a user