add UIDNA to astroport.key

This commit is contained in:
qo-op 2020-05-11 02:38:51 +02:00
parent df3a7d3199
commit e0f8f81c63
1 changed files with 7 additions and 5 deletions

View File

@ -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