Skip to content

Commit 44711d1

Browse files
committed
fix merge
1 parent b427c27 commit 44711d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mytoninstaller/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ def FirstNodeSettings(local):
6767
cpus = psutil.cpu_count() - 1
6868
cmd = f"{validatorAppPath} --threads {cpus} --daemonize --global-config {globalConfigPath} --db {ton_db_dir} --logname {tonLogPath} --archive-ttl {archive_ttl} --verbosity 1"
6969

70-
add2systemd(name="validator", user=vuser, start=cmd, pre='/bin/sleep 2') # post="/usr/bin/python3 /usr/src/mytonctrl/mytoncore.py -e \"validator down\""
71-
7270
if os.getenv('ADD_SHARD'):
7371
add_shard = os.getenv('ADD_SHARD')
7472
cmd += f' -M'
7573
for shard in add_shard.split():
7674
cmd += f' --add-shard {shard}'
7775

76+
add2systemd(name="validator", user=vuser, start=cmd, pre='/bin/sleep 2') # post="/usr/bin/python3 /usr/src/mytonctrl/mytoncore.py -e \"validator down\""
77+
7878
# Получить внешний ip адрес
7979
ip = get_own_ip()
8080
vport = random.randint(2000, 65000)

0 commit comments

Comments
 (0)