From abd0dc48e1e71d3318b34a3e95f5de9f015a8061 Mon Sep 17 00:00:00 2001 From: Alec Date: Tue, 9 Jan 2024 11:20:38 +0400 Subject: [PATCH] Update jsonrpcinstaller.sh fix enable JR: Add2Systemd is not defined Fix enable JR: Add2Systemd is not defined https://github.com/ton-blockchain/mytonctrl/issues/139 --- scripts/jsonrpcinstaller.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jsonrpcinstaller.sh b/scripts/jsonrpcinstaller.sh index a401eca3..faede590 100644 --- a/scripts/jsonrpcinstaller.sh +++ b/scripts/jsonrpcinstaller.sh @@ -31,7 +31,7 @@ git clone --recursive https://github.com/igroman787/mtc-jsonrpc.git # Прописать автозагрузку echo -e "${COLOR}[3/4]${ENDC} Add to startup" -cmd="from sys import path; path.append('/usr/src/mytonctrl/'); from mypylib.mypylib import *; Add2Systemd(name='mtc-jsonrpc', user='${user}', start='/usr/bin/python3 /usr/src/mtc-jsonrpc/mtc-jsonrpc.py')" +cmd="from sys import path; path.append('/usr/src/mytonctrl/'); from mypylib.mypylib import *; add2systemd(name='mtc-jsonrpc', user='${user}', start='/usr/bin/python3 /usr/src/mtc-jsonrpc/mtc-jsonrpc.py')" python3 -c "${cmd}" systemctl restart mtc-jsonrpc