summaryrefslogtreecommitdiff
path: root/tw/home/files
diff options
context:
space:
mode:
authorTimo Wilken2023-11-08 20:27:13 +0100
committerTimo Wilken2023-11-08 20:27:13 +0100
commit53e10a969148f3ee1a1d434b677e370359873365 (patch)
treeac93891f2cfcdb27168e7036f2d3cbb283d29a8e /tw/home/files
parent9790519c3faf4a368ce7f43953a4ab9479960cf9 (diff)
Track renaming of restic passwords
Diffstat (limited to 'tw/home/files')
-rw-r--r--tw/home/files/zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tw/home/files/zshrc b/tw/home/files/zshrc
index ced22a16..ed8575de 100644
--- a/tw/home/files/zshrc
+++ b/tw/home/files/zshrc
@@ -123,7 +123,7 @@ restic.vin () {
esac
shift
echo "running: restic -r vin.wg/$user/$repo $*" >&2
- RESTIC_PASSWORD_COMMAND="pass computers/vin/restic-repos/$repo" \
+ RESTIC_PASSWORD_COMMAND="pass computers/vin/restic-repos/$user-$repo" \
RESTIC_REPOSITORY="rest:http://$user:$(pass "computers/vin/restic-server/$user" | head -1)@vin.wg:8181/$user/$repo" \
command restic "$@"
fi