From e0f8f81c63e08bd13c9d12f598751b88bf85b650 Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 11 May 2020 02:38:51 +0200 Subject: [PATCH] add UIDNA to astroport.key --- g1sms/init_keys.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/g1sms/init_keys.sh b/g1sms/init_keys.sh index 6f957cb..8933963 100755 --- a/g1sms/init_keys.sh +++ b/g1sms/init_keys.sh @@ -77,11 +77,13 @@ echo " $NODE_UIDNA " - [[ -f ~/.zen/secret.astroport.key ]] \ - && [[ ! $(cat ~/.zen/secret.astroport.key | grep -F 'NODE_UIDNA' )]] \ - && echo "NODE_UIDNA=$NODE_UIDNA" >> ~/.zen/secret.astroport.key \ - || echo "ERROR NO ~/.zen/secret.astroport.key !!" && exit 1 - + if [[ -f ~/.zen/secret.astroport.key ]]; then + #[[ ! $(cat ~/.zen/secret.astroport.key | grep -F 'NODE_UIDNA' )]] + echo "NODE_UIDNA=$NODE_UIDNA" >> ~/.zen/secret.astroport.key + else + echo "ERROR NO ~/.zen/secret.astroport.key !!" && exit 1 + fi + chmod 400 ~/.zen/secret.astroport.key source ~/.zen/secret.astroport.key