mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-04-14 22:50:58 +00:00
优化acme.sh的使用与卸载
This commit is contained in:
parent
35b6a741ff
commit
b491fe19df
2 changed files with 8 additions and 5 deletions
|
@ -5993,7 +5993,7 @@ namespace ProxySU
|
||||||
+ "acme.sh......";
|
+ "acme.sh......";
|
||||||
MainWindowsShowInfo(currentStatus);
|
MainWindowsShowInfo(currentStatus);
|
||||||
|
|
||||||
sshShellCommand = @"acme.sh --uninstall";
|
sshShellCommand = @"/root/.acme.sh/acme.sh --uninstall";
|
||||||
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
sshShellCommand = @"rm -r ~/.acme.sh";
|
sshShellCommand = @"rm -r ~/.acme.sh";
|
||||||
|
@ -6010,6 +6010,9 @@ namespace ProxySU
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
sshShellCommand = @"sed -i 's/. ""/root/.acme.sh/acme.sh.env""//g' /root/.bashrc";
|
||||||
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
//******"acme.sh卸载成功!"******
|
//******"acme.sh卸载成功!"******
|
||||||
SetUpProgressBarProcessing(46);
|
SetUpProgressBarProcessing(46);
|
||||||
currentStatus = "acme.sh" + Application.Current.FindResource("DisplayInstallInfo_RemoveProxySoftSuccess").ToString();
|
currentStatus = "acme.sh" + Application.Current.FindResource("DisplayInstallInfo_RemoveProxySoftSuccess").ToString();
|
||||||
|
@ -8087,11 +8090,11 @@ namespace ProxySU
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//sshShellCommand = @"cd ~/.acme.sh/";
|
sshShellCommand = @"cd ~/.acme.sh/";
|
||||||
//currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
//sshShellCommand = @"alias acme.sh=~/.acme.sh/acme.sh";
|
sshShellCommand = @"alias acme.sh=~/.acme.sh/acme.sh";
|
||||||
//currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
//****** "申请域名证书......" ******24
|
//****** "申请域名证书......" ******24
|
||||||
SetUpProgressBarProcessing(55);
|
SetUpProgressBarProcessing(55);
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue