summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-18 11:35:38 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-18 11:35:38 +0100
commitc9e0e6bcd5c9af65e433b838dbfb68a7984237ed (patch)
tree4b45e62170231b6021ac61dd79f679e8d6b5c558 /hosts/vidhar/borg
parentdf3ea350a1a18766192a376789e60ef9d19a8cb3 (diff)
downloadnixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.tar
nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.tar.gz
nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.tar.bz2
nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.tar.xz
nixos-c9e0e6bcd5c9af65e433b838dbfb68a7984237ed.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg')
-rwxr-xr-xhosts/vidhar/borg/copy.py2
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
56def read_repo(path): 56def 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: