run display seed words as sudo

This commit is contained in:
rootzoll
2021-09-09 15:13:44 +02:00
parent f1a8a9f245
commit 71ca792638
2 changed files with 3 additions and 3 deletions

View File

@@ -388,7 +388,7 @@ if [ "${clnNode}" != "${choice}" ]; then
if [ "${choice}" = "on" ]; then
echo "# turning ON"
/home/admin/config.scripts/cln.install.sh on mainnet
/home/admin/config.scripts/cln.install.sh display-seed mainnet
sudo /home/admin/config.scripts/cln.install.sh display-seed mainnet
if [ "${testnet}" == "on" ]; then
/home/admin/config.scripts/cln.install.sh on testnet
fi

View File

@@ -254,8 +254,8 @@ if [ "$1" = "display-seed" ]; then
echo "# seewordFileExists(${seewordFileExists})"
if [ "${seedwordFileExists}" == "1" ]; then
source ${seedwordFile}
echo "# seedwords(${seedwords})"
echo "# seedwords6x4(${seedwords6x4})"
#echo "# seedwords(${seedwords})"
#echo "# seedwords6x4(${seedwords6x4})"
ack=0
while [ ${ack} -eq 0 ]
do