Bring the sftp server code into the package itself

This commit is contained in:
Dane Everitt
2020-08-31 20:14:04 -07:00
parent 7d084e3049
commit 1e633ae302
9 changed files with 797 additions and 215 deletions

View File

@@ -218,9 +218,8 @@ func rootCmdRun(*cobra.Command, []string) {
pool.StopWait()
// Initialize the SFTP server.
if err := sftp.Initialize(c); err != nil {
log.WithError(err).Error("failed to initialize the sftp server")
os.Exit(1)
if err := sftp.Initialize(c.System); err != nil {
log.WithError(err).Fatal("failed to initialize the sftp server")
return
}