Skip to content

Commit 1086f3c

Browse files
committed
check if start command is default in set_node_argument
1 parent 981b5be commit 1086f3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mytoninstaller/scripts/set_node_argument.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def set_node_arg(arg_name: str, arg_value: str = ''):
1212
assert arg_name.startswith('-'), 'arg_name must start with "-" or "--"'
1313
service = get_validator_service()
1414
command = get_node_start_command()
15+
if command.split(' ')[0] != '/usr/bin/ton/validator-engine/validator-engine':
16+
raise Exception('Invalid node start command in service file')
1517
if command is None:
1618
raise Exception('Cannot find node start command in service file')
1719
args = get_node_args(command)

0 commit comments

Comments
 (0)