lamassu-server/bin/lamassu-coinatmradar
Neal Conner 1773c0ca2a Use non-symlinked hkdf bin
In the event hkdf is in /usr/local/bin, as it was in one case.
2019-04-17 15:23:20 +03:00

13 lines
515 B
Bash

#!/usr/bin/env bash
SEED="$(cat ~/seeds/seed.txt)"
echo
echo "Here is the 'External ID' of your paired machine(s), for use under the 'ATM / Teller details' of your CoinATMRadar listing:"
echo
su - postgres -c "psql \"lamassu\" -Atc \"select regexp_replace(device_id, '$', ' '),regexp_replace(name, '^', ' ') from devices\""
echo
echo "If speaking with CoinATMRadar directly, it may be helpful to let them know your 'Operator ID':"
echo
$(npm root -g)/lamassu-server/bin/hkdf operator-id "$SEED" | cut -c -32
echo