add node key

This commit is contained in:
Sebastian
2024-03-17 17:08:08 +01:00
parent f0abac5047
commit ef09e3dda1
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
#!/bin/bash
if [ -f /config/p2p_node_key_txt ]; then exit 0; fi;
cast w n | grep -i 'Private Key' | awk -F ': ' '{print $2}' | sed 's/0x//' > /config/p2p_node_key_txt