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