Skip to content

Commit

Permalink
优化acme.sh的使用与卸载
Browse files Browse the repository at this point in the history
  • Loading branch information
proxysu committed Oct 31, 2020
1 parent 35b6a74 commit b491fe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ProxySU/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5993,7 +5993,7 @@ private void StartRemoveProxySoft(ConnectionInfo connectionInfo)
+ "acme.sh......";
MainWindowsShowInfo(currentStatus);

sshShellCommand = @"acme.sh --uninstall";
sshShellCommand = @"/root/.acme.sh/acme.sh --uninstall";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);

sshShellCommand = @"rm -r ~/.acme.sh";
Expand All @@ -6010,6 +6010,9 @@ private void StartRemoveProxySoft(ConnectionInfo connectionInfo)
}
else
{
sshShellCommand = @"sed -i 's/. ""/root/.acme.sh/acme.sh.env""//g' /root/.bashrc";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);

//******"acme.sh卸载成功!"******
SetUpProgressBarProcessing(46);
currentStatus = "acme.sh" + Application.Current.FindResource("DisplayInstallInfo_RemoveProxySoftSuccess").ToString();
Expand Down Expand Up @@ -8087,11 +8090,11 @@ private bool AcmeShInstall(SshClient client)
return false;
}

//sshShellCommand = @"cd ~/.acme.sh/";
//currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
sshShellCommand = @"cd ~/.acme.sh/";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);

//sshShellCommand = @"alias acme.sh=~/.acme.sh/acme.sh";
//currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
sshShellCommand = @"alias acme.sh=~/.acme.sh/acme.sh";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);

//****** "申请域名证书......" ******24
SetUpProgressBarProcessing(55);
Expand Down
Binary file modified ProxySU/bin/Beta/Beta.zip
Binary file not shown.

0 comments on commit b491fe1

Please sign in to comment.