diff options
author | Erich Eckner <git@eckner.net> | 2019-03-06 21:13:10 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-03-18 19:49:20 +0100 |
commit | 59a95c8d8ccaae9b62b28477dd0fbc685dea6186 (patch) | |
tree | f860f36214ad9d76bd0c1f40f618453ee5599f23 /mark-as-expendable-dir.in | |
parent | 870d2cb3873dd3881169342198c5b8822e35e6db (diff) | |
download | mark-as-expendable-dir-0.2.tar.xz |
Diffstat (limited to 'mark-as-expendable-dir.in')
-rw-r--r-- | mark-as-expendable-dir.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mark-as-expendable-dir.in b/mark-as-expendable-dir.in index bb31b3e..c074d14 100644 --- a/mark-as-expendable-dir.in +++ b/mark-as-expendable-dir.in @@ -71,14 +71,17 @@ do printf '# For information about cache directory tags, see:\n' printf '# http://www.brynosaurus.com/cachedir/\n' } > "${dir}/CACHEDIR.TAG" + chown --reference "${dir}" "${dir}/CACHEDIR.TAG" fi if [ ! -f "${dir}/.rsync-filter" ]; then { printf '+ .rsync-filter\n' printf -- '- *\n' } > "${dir}/.rsync-filter" + chown --reference "${dir}" "${dir}/.rsync-filter" fi if [ ! -f "${dir}/.nobackup" ]; then touch "${dir}/.nobackup" + chown --reference "${dir}" "${dir}/.nobackup" fi done |