mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-02-22 09:23:17 +03:00
修复安装MTProto下载脚本错误
This commit is contained in:
parent
abac17d512
commit
b69acc5094
@ -2843,10 +2843,10 @@ namespace ProxySU
|
|||||||
//升级Trojan-Go主程序
|
//升级Trojan-Go主程序
|
||||||
//client.RunCommand("curl -o /tmp/trojan-go.sh https://raw.githubusercontent.com/proxysu/shellscript/master/trojan-go.sh");
|
//client.RunCommand("curl -o /tmp/trojan-go.sh https://raw.githubusercontent.com/proxysu/shellscript/master/trojan-go.sh");
|
||||||
//client.RunCommand("yes | bash /tmp/trojan-go.sh -f");
|
//client.RunCommand("yes | bash /tmp/trojan-go.sh -f");
|
||||||
sshShellCommand = $"curl -o /tmp/trojan-go.sh https://raw.githubusercontent.com/proxysu/shellscript/master/trojan-go.sh";
|
sshShellCommand = $"curl -o /tmp/install.sh https://raw.githubusercontent.com/proxysu/shellscript/master/trojan-go.sh";
|
||||||
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
functionResult = FileCheckExists(client, @"/tmp/trojan-go.sh");
|
functionResult = FileCheckExists(client, @"/tmp/install.sh");
|
||||||
if (functionResult == false)
|
if (functionResult == false)
|
||||||
{
|
{
|
||||||
//***文件下载失败!***
|
//***文件下载失败!***
|
||||||
@ -3404,10 +3404,10 @@ namespace ProxySU
|
|||||||
//升级Trojan主程序
|
//升级Trojan主程序
|
||||||
//client.RunCommand("curl -o /tmp/trojan-quickstart.sh https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh");
|
//client.RunCommand("curl -o /tmp/trojan-quickstart.sh https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh");
|
||||||
//client.RunCommand("yes | bash /tmp/trojan-quickstart.sh");
|
//client.RunCommand("yes | bash /tmp/trojan-quickstart.sh");
|
||||||
sshShellCommand = $"curl -o /tmp/trojan-quickstart.sh https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh";
|
sshShellCommand = $"curl -o /tmp/install.sh https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh";
|
||||||
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
functionResult = FileCheckExists(client, @"/tmp/trojan-quickstart.sh");
|
functionResult = FileCheckExists(client, @"/tmp/install.sh");
|
||||||
if (functionResult == false)
|
if (functionResult == false)
|
||||||
{
|
{
|
||||||
//***文件下载失败!***
|
//***文件下载失败!***
|
||||||
@ -5076,10 +5076,10 @@ namespace ProxySU
|
|||||||
currentStatus = Application.Current.FindResource("DisplayInstallInfo_StartInstallSoft").ToString() + "MTProto......";
|
currentStatus = Application.Current.FindResource("DisplayInstallInfo_StartInstallSoft").ToString() + "MTProto......";
|
||||||
MainWindowsShowInfo(currentStatus);
|
MainWindowsShowInfo(currentStatus);
|
||||||
|
|
||||||
sshShellCommand = $"curl -o /tmp/mtg_install.sh https://raw.githubusercontent.com/proxysu/shellscript/master/MTProto/mtg_install.sh";
|
sshShellCommand = $"curl -o /tmp/install.sh https://raw.githubusercontent.com/proxysu/shellscript/master/MTProto/mtg_install.sh";
|
||||||
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
functionResult = FileCheckExists(client, @"/tmp/installproxy.sh");
|
functionResult = FileCheckExists(client, @"/tmp/install.sh");
|
||||||
if (functionResult == false)
|
if (functionResult == false)
|
||||||
{
|
{
|
||||||
//***文件下载失败!***
|
//***文件下载失败!***
|
||||||
@ -8140,10 +8140,10 @@ namespace ProxySU
|
|||||||
currentStatus = Application.Current.FindResource("DisplayInstallInfo_StartInstallSoft").ToString() + $"{proxyName}......";
|
currentStatus = Application.Current.FindResource("DisplayInstallInfo_StartInstallSoft").ToString() + $"{proxyName}......";
|
||||||
MainWindowsShowInfo(currentStatus);
|
MainWindowsShowInfo(currentStatus);
|
||||||
|
|
||||||
sshShellCommand = $"curl -o /tmp/installproxy.sh {downloadUrl}";
|
sshShellCommand = $"curl -o /tmp/install.sh {downloadUrl}";
|
||||||
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
functionResult = FileCheckExists(client, @"/tmp/installproxy.sh");
|
functionResult = FileCheckExists(client, @"/tmp/install.sh");
|
||||||
if (functionResult == false)
|
if (functionResult == false)
|
||||||
{
|
{
|
||||||
//***文件下载失败!***
|
//***文件下载失败!***
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user