diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-18 11:35:38 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-18 11:35:38 +0100 |
commit | c9e0e6bcd5c9af65e433b838dbfb68a7984237ed (patch) | |
tree | 4b45e62170231b6021ac61dd79f679e8d6b5c558 /hosts/vidhar/borg/copy.py | |
parent | df3ea350a1a18766192a376789e60ef9d19a8cb3 (diff) | |
download | nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.tar nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.tar.gz nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.tar.bz2 nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.tar.xz nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg/copy.py')
-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 1efeaef4..e6cf2ac4 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -50,8 +50,8 @@ def as_borg(caps=set()): | |||
50 | for capset in [cap_permitted, cap_inheritable, cap_effective, cap_ambient]: | 50 | for capset in [cap_permitted, cap_inheritable, cap_effective, cap_ambient]: |
51 | capset.add(*caps) | 51 | capset.add(*caps) |
52 | 52 | ||
53 | os.setuid(borg_pwd.pw_uid) | ||
54 | os.setgid(borg_pwd.pw_gid) | 53 | os.setgid(borg_pwd.pw_gid) |
54 | os.setuid(borg_pwd.pw_uid) | ||
55 | 55 | ||
56 | def read_repo(path): | 56 | def read_repo(path): |
57 | with Halo(text=f'Listing {path}', **halo_args) as sp: | 57 | with Halo(text=f'Listing {path}', **halo_args) as sp: |