Justfile: prototype remote drive unlock

This commit is contained in:
steveej 2018-12-17 13:38:12 +01:00
parent 0db3324e89
commit 7eaa7f6e45

View file

@ -108,6 +108,9 @@ disk-install dir: _render_templates
verify-vnc sshserver attempts="10": verify-vnc sshserver attempts="10":
#!/usr/bin/env bash #!/usr/bin/env bash
set -e 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 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" export TESS_ARGS="-c debug_file=/dev/null --psm 4"
@ -134,3 +137,7 @@ verify-vnc sshserver attempts="10":
done done
echo Verification failed {{attempts}} times. Giving up... echo Verification failed {{attempts}} times. Giving up...
exit 1 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_]+:")