diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-18 12:21:17 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-18 12:21:17 +0100 |
commit | 14da6b193df403c52be8223b1b0ad44bc1077b79 (patch) | |
tree | c66959a2fe0ef0733754ca283ad25bff287ecb13 /hosts | |
parent | 806cd06d4e66e2c552c619f43dba19b416438807 (diff) | |
download | nixos-14da6b193df403c52be8223b1b0ad44bc1077b79.tar nixos-14da6b193df403c52be8223b1b0ad44bc1077b79.tar.gz nixos-14da6b193df403c52be8223b1b0ad44bc1077b79.tar.bz2 nixos-14da6b193df403c52be8223b1b0ad44bc1077b79.tar.xz nixos-14da6b193df403c52be8223b1b0ad44bc1077b79.zip |
vidhar: ...
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 514cf7e5..36798dc6 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -129,7 +129,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
129 | os.chroot(chroot) | 129 | os.chroot(chroot) |
130 | os.chdir('/') | 130 | os.chdir('/') |
131 | dir = pathlib.Path('/borg') | 131 | dir = pathlib.Path('/borg') |
132 | dir.mkdir(parents=True,exist_ok=True,mode=750) | 132 | dir.mkdir(parents=True,exist_ok=True,mode=0o0750) |
133 | os.chown(dir, borg_pwd.pw_uid, borg_pwd.pw_gid) | 133 | os.chown(dir, borg_pwd.pw_uid, borg_pwd.pw_gid) |
134 | 134 | ||
135 | total_size = None | 135 | total_size = None |