Browse Source

don't block startup on failure to configure SSH (#1520)

Jack Doan 1 month ago
parent
commit
0f305d5397
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main.go

+ 2 - 1
main.go

@@ -75,7 +75,8 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg
 	if c.GetBool("sshd.enabled", false) {
 	if c.GetBool("sshd.enabled", false) {
 		sshStart, err = configSSH(l, ssh, c)
 		sshStart, err = configSSH(l, ssh, c)
 		if err != nil {
 		if err != nil {
-			return nil, util.ContextualizeIfNeeded("Error while configuring the sshd", err)
+			l.WithError(err).Warn("Failed to configure sshd, ssh debugging will not be available")
+			sshStart = nil
 		}
 		}
 	}
 	}