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