Fix template for config.sh

This commit is contained in:
poka 2019-12-06 14:18:11 +00:00
parent fd860ae85f
commit 81d224330f
1 changed files with 2 additions and 3 deletions

View File

@ -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