From cc35043b68f9b2f422e60c1dc7d7e1ccce34d26f Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 10 Dec 2018 16:09:45 +0100 Subject: [PATCH] sudo write config at end of setup --- home.admin/10setupBlitz.sh | 8 ++++---- home.admin/70initLND.sh | 4 ++-- home.admin/95finalSetup.sh | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/home.admin/10setupBlitz.sh b/home.admin/10setupBlitz.sh index 7ca4e9a..e5d7f9f 100755 --- a/home.admin/10setupBlitz.sh +++ b/home.admin/10setupBlitz.sh @@ -31,8 +31,8 @@ fi if [ ${setupStep} -gt 89 ];then echo "FINISH by setupstep(${setupStep})" sleep 3 - ./90finishSetup.sh - ./95finalSetup.sh + sudo ./90finishSetup.sh + sudo ./95finalSetup.sh exit 0 fi @@ -88,8 +88,8 @@ if [ ${lndRunning} -eq 1 ]; then # if unlocked, blockchain synced and LND synced to chain .. finisch Setup echo "FINSIH ... " sleep 3 - ./90finishSetup.sh - ./95finalSetup.sh + sudo ./90finishSetup.sh + sudo ./95finalSetup.sh exit 0 fi #end - when lighting is running diff --git a/home.admin/70initLND.sh b/home.admin/70initLND.sh index a99c320..009a566 100755 --- a/home.admin/70initLND.sh +++ b/home.admin/70initLND.sh @@ -237,5 +237,5 @@ fi sudo sed -i "s/^setupStep=.*/setupStep=80/g" /home/admin/raspiblitz.info ###### finishSetup -./90finishSetup.sh -./95finalSetup.sh +sudo ./90finishSetup.sh +sudo ./95finalSetup.sh diff --git a/home.admin/95finalSetup.sh b/home.admin/95finalSetup.sh index 6c0a74c..b411295 100755 --- a/home.admin/95finalSetup.sh +++ b/home.admin/95finalSetup.sh @@ -44,5 +44,6 @@ fi sudo sed -i "s/^setupStep=.*/setupStep=100/g" /home/admin/raspiblitz.info clear -echo "Setup done. Rebooting now." -sudo shutdown -r now +echo "Setup done. Rebooting now. PRESS ENTER" +read key +sudo shutdown -r now \ No newline at end of file