Skip to content

Commit e2d6464

Browse files
authored
Merge pull request #2 from tonstakers/patch-install-scrips
test hardcode work
2 parents 35c64c2 + 100d220 commit e2d6464

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

scripts/install.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ if [ "$(id -u)" != "0" ]; then
1212
exit 1
1313
fi
1414

15-
author="ton-blockchain"
16-
repo="mytonctrl"
15+
#author="ton-blockchain"
16+
#repo="mytonctrl"
17+
#branch="master"
18+
#mode="validator"
19+
20+
author="tonstakers"
21+
repo="mytonctrl-v2"
1722
branch="master"
1823
mode="validator"
1924

@@ -36,7 +41,10 @@ if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
3641
fi
3742

3843
# node install parameters
39-
config="https://ton-blockchain.github.io/global.config.json"
44+
# todo support parametr
45+
#config="https://ton-blockchain.github.io/global.config.json"
46+
config="https://ton-blockchain.github.io/testnet-global.config.json"
47+
4048
telemetry=true
4149
ignore=false
4250
dump=false
@@ -91,7 +99,9 @@ file3=${BIN_DIR}/ton/validator-engine-console/validator-engine-console
9199

92100
if [ ! -f "${file1}" ] || [ ! -f "${file2}" ] || [ ! -f "${file3}" ]; then
93101
echo "TON does not exists, building"
94-
wget https://raw.githubusercontent.com/${author}/${repo}/${branch}/scripts/ton_installer.sh -O /tmp/ton_installer.sh
102+
# wget https://raw.githubusercontent.com/${author}/${repo}/${branch}/scripts/ton_installer.sh -O /tmp/ton_installer.sh
103+
wget https://raw.githubusercontent.com/tonstakers/mytonctrl-v2/master/scripts/ton_installer.sh -O /tmp/ton_installer.sh
104+
# todo set vas scrip patch
95105
bash /tmp/ton_installer.sh -c ${config}
96106
fi
97107

scripts/ton_installer.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ if [ "$(id -u)" != "0" ]; then
99
fi
1010

1111
# Get arguments
12-
config=https://ton-blockchain.github.io/global.config.json
12+
# todo set vars
13+
#config=https://ton-blockchain.github.io/global.config.json
14+
config="https://ton-blockchain.github.io/testnet-global.config.json"
1315
while getopts c: flag
1416
do
1517
case "${flag}" in
@@ -104,6 +106,9 @@ echo -e "${COLOR}[3/6]${ENDC} Preparing for compilation"
104106
cd $SOURCES_DIR
105107
rm -rf $SOURCES_DIR/ton
106108
git clone --recursive https://github.com/ton-blockchain/ton.git
109+
cd $SOURCES_DIR/ton
110+
git checkout 5380e6f
111+
cd ../
107112
git config --global --add safe.directory $SOURCES_DIR/ton
108113

109114
# Подготавливаем папки для компиляции

0 commit comments

Comments
 (0)