From 8c12875b77fc699865cdcb53b9c26ffac71c7817 Mon Sep 17 00:00:00 2001 From: dankh Date: Tue, 22 Oct 2019 17:01:44 +0200 Subject: [PATCH 1/2] Add write permission to user before removal. --- rsync_tmbackup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh index 6fbf8f2..025d66f 100755 --- a/rsync_tmbackup.sh +++ b/rsync_tmbackup.sh @@ -89,6 +89,7 @@ fn_expire_backup() { fi fn_log_info "Expiring $1" + fn_run_cmd "chmod -R u+w $1" fn_rm_dir "$1" } From 45149a390a1d8cc2b11514ef698a8caaec1e89aa Mon Sep 17 00:00:00 2001 From: dankh Date: Tue, 30 Mar 2021 10:41:48 +0200 Subject: [PATCH 2/2] Add quotes to chmod argument. --- rsync_tmbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh index 025d66f..0248781 100755 --- a/rsync_tmbackup.sh +++ b/rsync_tmbackup.sh @@ -89,7 +89,7 @@ fn_expire_backup() { fi fn_log_info "Expiring $1" - fn_run_cmd "chmod -R u+w $1" + fn_run_cmd "chmod -R u+w '$1'" fn_rm_dir "$1" }