Justfile: prototype remote drive unlock
This commit is contained in:
parent
0db3324e89
commit
7eaa7f6e45
1 changed files with 7 additions and 0 deletions
7
Justfile
7
Justfile
|
@ -108,6 +108,9 @@ disk-install dir: _render_templates
|
|||
verify-vnc sshserver attempts="10":
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
: ${VNCSOCK:?VNCSOCK must be set}
|
||||
: ${VNCPW:?VNCPW must be set}
|
||||
|
||||
export MAGICK_ARGS="-filter Catrom -density 72 -resample 300 -contrast -normalize -despeckle -type grayscale -sharpen 1 -posterize 3 -negate -gamma 100 -blur 1x65535"
|
||||
export TESS_ARGS="-c debug_file=/dev/null --psm 4"
|
||||
|
||||
|
@ -134,3 +137,7 @@ verify-vnc sshserver attempts="10":
|
|||
done
|
||||
echo Verification failed {{attempts}} times. Giving up...
|
||||
exit 1
|
||||
|
||||
_get_pass_entry path key:
|
||||
pass show {{path}}| grep -E "^{{key}}:" | awk '{ print $2 }'
|
||||
# jq -sR 'split("\n") | map(split(":"))' <(pass show Infrastructure/VPS/CFB4ED74 | grep -E "^[A-Za-z_]+:")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue