移除多余注释

This commit is contained in:
qiuzhiqian
2025-07-14 09:35:31 +08:00
committed by putyy
parent d3d8983307
commit 0a516b2f3c

View File

@@ -117,8 +117,6 @@ func (s *SystemSetup) installCert() (string, error) {
confPath := "/etc/ca-certificates.conf"
checkCmd := []string{"grep", "-qxF", certName, confPath}
if _, err := s.runCommand(checkCmd, true); err != nil {
// certPath = "/usr/share/ca-certificates/" + appOnce.AppName + "/" + certName
// Therefore, in the conf file, it should be set to `appOnce.AppName + "/" + certName` instead of `certName`.
echoCmd := []string{"bash", "-c", fmt.Sprintf("echo '%s' >> %s", appOnce.AppName+"/"+certName, confPath)}
if output, err := s.runCommand(echoCmd, true); err != nil {
errs.WriteString(fmt.Sprintf("append conf failed: %s\n%s\n", err.Error(), output))