Scripts: add mainnet.sh

This commit is contained in:
Benjamin Canou 2018-09-17 14:15:38 +02:00 committed by Pierre Boutillier
parent 128ed65687
commit 2491502322
No known key found for this signature in database
GPG Key ID: C2F73508B56A193C
2 changed files with 24 additions and 1 deletions

View File

@ -621,11 +621,33 @@ case $(basename $0) in
default_port=19732
;;
betanet.sh)
if [ -d "$HOME/.tezos-mainnet" ] ; then
echo 'You already upgraded, please only use `mainnet.sh` now.'
exit 1
else
echo 'A new script `mainnet.sh` is now available.'
echo 'The current `betanet.sh` still works, but we recommend that you upgrade.'
fi
docker_base_dir="$HOME/.tezos-betanet"
docker_image=tezos/tezos:betanet
docker_image=tezos/tezos:mainnet
docker_compose_base_name=betanet
default_port=9732
;;
mainnet.sh)
if [ -d "$HOME/.tezos-betanet" ] ; then
echo 'Folder "'$HOME'/.tezos-betanet" detected.'
echo 'To upgrade to the mainnet script, execute the following commands.'
echo ' `betanet.sh stop`'
echo 'Make sure that your node is stopped using `docker ps`.'
echo ' `mv "'$HOME'/.tezos-betanet" "'$HOME'/.tezos-mainnet"`'
echo ' `mainnet.sh start`'
exit 1
fi
docker_base_dir="$HOME/.tezos-mainnet"
docker_image=tezos/tezos:mainnet
docker_compose_base_name=mainnet
default_port=9732
;;
*)
docker_base_dir="$HOME/.tezos-alphanet"
docker_image=tezos/tezos:alphanet

1
scripts/mainnet.sh Symbolic link
View File

@ -0,0 +1 @@
alphanet.sh