1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-29 08:36:08 +03:00
This commit is contained in:
autumn 2021-06-19 11:57:16 +08:00
parent 63c7f8b7a7
commit 395d01aea8

View File

@ -83,6 +83,8 @@ namespace ProxySuper.Core.Services
if (!string.IsNullOrEmpty(cmd)) if (!string.IsNullOrEmpty(cmd))
{ {
CmdType = CmdType.Dnf; CmdType = CmdType.Dnf;
//RunCmd("echo \"export LC_ALL=en_US.UTF-8\" >> /etc/profile");
//RunCmd("source /etc/profile");
} }
} }
@ -406,14 +408,14 @@ namespace ProxySuper.Core.Services
if (CmdType == CmdType.Dnf) if (CmdType == CmdType.Dnf)
{ {
RunCmd("dnf install -y 'dnf-command(copr)'"); RunCmd("dnf install -y 'dnf-command(copr)'");
RunCmd("dnf copr enable @caddy/caddy"); RunCmd("dnf copr -y enable @caddy/caddy");
RunCmd("dnf install -y caddy"); RunCmd("dnf install -y caddy");
} }
if (CmdType == CmdType.Yum) if (CmdType == CmdType.Yum)
{ {
RunCmd("yum install -y yum-plugin-copr"); RunCmd("yum install -y yum-plugin-copr");
RunCmd("yum copr enable @caddy/caddy"); RunCmd("yum copr -y enable @caddy/caddy");
RunCmd("yum install -y caddy"); RunCmd("yum install -y caddy");
} }