From 81d224330f5265038b642b927865934178a822a3 Mon Sep 17 00:00:00 2001 From: poka Date: Fri, 6 Dec 2019 14:18:11 +0000 Subject: [PATCH] Fix template for config.sh --- config.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config.sh b/config.sh index dab4fee..6b636b8 100755 --- a/config.sh +++ b/config.sh @@ -9,8 +9,6 @@ now=$(date +%Y-%m-%d) echo "Ce script configure votre noeud G1sms+" IPFS=$(ps auxf --sort=+utime | grep ipfs | tail -n 1 | cut -d " " -f 1); -cp .install/init.sh.template ./shell/init.sh - if [[ -f .install/init.sh.template ]]; then echo "Quel est l'utilisateur du système IPFS (détecté: $IPFS)?" read YOU @@ -34,7 +32,8 @@ if [[ -f .install/init.sh.template ]]; then echo "LES PARAMETRES SONT BONS? Appliquer? ENTER ou CTRL-C ?" read - [[ -f ./shell/init.sh ]] && mv ./shell/init.sh ./shell/init.sh.old + [[ -f shell/init.sh ]] && mv shell/init.sh shell/init.sh.old + cp .install/init.sh.template shell/init.sh sed -i s/pi/$YOU/g ./shell/init.sh sed -i s/+33600000000/$MASTERPHONE/g ./shell/init.sh