From 3022582ade8049e6ccf18f358cedb996d6716945 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 24 Apr 2018 19:54:01 +0200 Subject: populate: support rsyncing files --- pkgs/populate/populate.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/populate/populate.sh b/pkgs/populate/populate.sh index 670d25b..9627fb7 100755 --- a/pkgs/populate/populate.sh +++ b/pkgs/populate/populate.sh @@ -132,10 +132,14 @@ populate_file() {( file_target=$target_user@$target_host:$target_path/$file_name fi + if test -d "$file_path"; then + file_path=$file_path/ + fi + rsync \ -vFrlptD \ --delete-excluded \ - "$file_path"/ \ + "$file_path" \ -e "ssh -o ControlPersist=no -p $target_port" \ "$file_target" )} -- cgit v1.2.3