summaryrefslogtreecommitdiff
path: root/zshfunc/upgrade-torproject
blob: e88d720c96db24725d31e9f11e3b27d120a73888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## vim:ft=zsh:foldmethod=marker

#local i
#
#upgrade-all-Generic tpo upgrade-one-torproject $TORPROJECTHOSTS
(
ssh perdulce.torproject.org sleep 1h &
SSH_TUI_PID=$!

set -e
local SSH_AUTH_SOCK
local SSH_AGENT_PID
eval `ssh-agent`
ssh-add .ssh/IDs/id_torprojectadm < /dev/null
#sleep 5
EXTRAARGS="$*" upgrade-all-Generic tpo upgrade-one-torproject $TORPROJECTHOSTS
kill $SSH_AGENT_PID
kill $SSH_TUI_PID
)