justfile: complete the verify-n-unlock recipe
This commit is contained in:
parent
9ae50a8275
commit
154d90006d
1 changed files with 12 additions and 0 deletions
12
Justfile
12
Justfile
|
@ -212,7 +212,19 @@ disk-umount dir:
|
||||||
disk-install dir: _render_templates
|
disk-install dir: _render_templates
|
||||||
just -v _device diskInstall {{dir}}
|
just -v _device diskInstall {{dir}}
|
||||||
|
|
||||||
|
|
||||||
verify-n-unlock sshserver attempts="10":
|
verify-n-unlock sshserver attempts="10":
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
env \
|
||||||
|
GETPW="just _get_pass_entry Infrastructure/VPS/{{sshserver}} DRIVE_PW" \
|
||||||
|
SSHOPTS="$(just _get_pass_entry Infrastructure/VPS/{{sshserver}} SSHOPTS)" \
|
||||||
|
VNCSOCK="$(just _get_pass_entry Infrastructure/VPS/{{sshserver}} VNCSOCK)" \
|
||||||
|
VNCPW="$(just _get_pass_entry Infrastructure/VPS/{{sshserver}} VNCPW)" \
|
||||||
|
\
|
||||||
|
just _verify-n-unlock {{sshserver}} {{attempts}}
|
||||||
|
|
||||||
|
_verify-n-unlock sshserver attempts:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
: ${VNCSOCK:?VNCSOCK must be set}
|
: ${VNCSOCK:?VNCSOCK must be set}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue