From 7eaa7f6e4530db56786dbb887c9b22a9f1a01780 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Mon, 17 Dec 2018 13:38:12 +0100 Subject: [PATCH] Justfile: prototype remote drive unlock --- Justfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Justfile b/Justfile index 01e5a23..0095766 100755 --- a/Justfile +++ b/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_]+:")