Fix template for config.sh
This commit is contained in:
parent
fd860ae85f
commit
81d224330f
|
@ -9,8 +9,6 @@ now=$(date +%Y-%m-%d)
|
||||||
echo "Ce script configure votre noeud G1sms+"
|
echo "Ce script configure votre noeud G1sms+"
|
||||||
IPFS=$(ps auxf --sort=+utime | grep ipfs | tail -n 1 | cut -d " " -f 1);
|
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
|
if [[ -f .install/init.sh.template ]]; then
|
||||||
echo "Quel est l'utilisateur du système IPFS (détecté: $IPFS)?"
|
echo "Quel est l'utilisateur du système IPFS (détecté: $IPFS)?"
|
||||||
read YOU
|
read YOU
|
||||||
|
@ -34,7 +32,8 @@ if [[ -f .install/init.sh.template ]]; then
|
||||||
echo "LES PARAMETRES SONT BONS? Appliquer? ENTER ou CTRL-C ?"
|
echo "LES PARAMETRES SONT BONS? Appliquer? ENTER ou CTRL-C ?"
|
||||||
read
|
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/pi/$YOU/g ./shell/init.sh
|
||||||
sed -i s/+33600000000/$MASTERPHONE/g ./shell/init.sh
|
sed -i s/+33600000000/$MASTERPHONE/g ./shell/init.sh
|
||||||
|
|
Loading…
Reference in New Issue