1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2025-02-21 08:53:17 +03:00

修复安装MTProto下载脚本错误2

This commit is contained in:
ProxySU 2020-11-02 09:36:47 +08:00
parent 15bdfc5a87
commit 8f83b57dd4
2 changed files with 8 additions and 8 deletions

View File

@ -2855,10 +2855,10 @@ namespace ProxySU
return; return;
} }
sshShellCommand = @"yes | bash /tmp/trojan-go.sh"; sshShellCommand = @"yes | bash /tmp/install.sh";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand); currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
sshShellCommand = @"rm -f /tmp/trojan-go.sh"; sshShellCommand = @"rm -f /tmp/install.sh";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand); currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
SetUpProgressBarProcessing(80); SetUpProgressBarProcessing(80);
@ -3416,10 +3416,10 @@ namespace ProxySU
return; return;
} }
sshShellCommand = @"yes | bash /tmp/trojan-quickstart.sh"; sshShellCommand = @"yes | bash /tmp/install.sh";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand); currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
sshShellCommand = @"rm -f /tmp/trojan-quickstart.sh"; sshShellCommand = @"rm -f /tmp/install.sh";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand); currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
//sshcmd = @"echo ""$(/usr/local/bin/trojan -v 2>&1)"" | head -n 1 | cut -d "" "" -f4"; //sshcmd = @"echo ""$(/usr/local/bin/trojan -v 2>&1)"" | head -n 1 | cut -d "" "" -f4";
@ -5088,10 +5088,10 @@ namespace ProxySU
return false; return false;
} }
sshShellCommand = $"yes | bash /tmp/mtg_install.sh {ReceiveConfigurationParameters[1]} {ReceiveConfigurationParameters[7]}"; sshShellCommand = $"yes | bash /tmp/install.sh {ReceiveConfigurationParameters[1]} {ReceiveConfigurationParameters[7]}";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand); currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
sshShellCommand = @"rm -f /tmp/mtg_install.sh"; sshShellCommand = @"rm -f /tmp/install.sh";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand); currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
SetUpProgressBarProcessing(40); SetUpProgressBarProcessing(40);
@ -8152,10 +8152,10 @@ namespace ProxySU
return false; return false;
} }
sshShellCommand = @"yes | bash /tmp/installproxy.sh"; sshShellCommand = @"yes | bash /tmp/install.sh";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand); currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
sshShellCommand = @"rm -f /tmp/installproxy.sh"; sshShellCommand = @"rm -f /tmp/install.sh";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand); currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
SetUpProgressBarProcessing(40); SetUpProgressBarProcessing(40);

Binary file not shown.