Skip to content

Commit a0cd2d7

Browse files
committed
Remove SFTP server
1 parent 025b34b commit a0cd2d7

File tree

5 files changed

+10
-663
lines changed

5 files changed

+10
-663
lines changed

cmd/root.go

+10-11
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
"github.com/pterodactyl/wings/remote"
3434
"github.com/pterodactyl/wings/router"
3535
"github.com/pterodactyl/wings/server"
36-
"github.com/pterodactyl/wings/sftp"
3736
"github.com/pterodactyl/wings/system"
3837

3938
apierrors "k8s.io/apimachinery/pkg/api/errors"
@@ -141,9 +140,9 @@ func rootCmdRun(cmd *cobra.Command, _ []string) {
141140
log.WithField("error", err).Fatal("failed to load server configurations")
142141
}
143142

144-
if err := environment.ConfigureDocker(cmd.Context()); err != nil {
145-
log.WithField("error", err).Fatal("failed to configure docker environment")
146-
}
143+
// if err := environment.ConfigureDocker(cmd.Context()); err != nil {
144+
// log.WithField("error", err).Fatal("failed to configure docker environment")
145+
// }
147146

148147
if err := config.WriteToDisk(config.Get()); err != nil {
149148
log.WithField("error", err).Fatal("failed to write configuration to disk")
@@ -272,13 +271,13 @@ func rootCmdRun(cmd *cobra.Command, _ []string) {
272271
s.StartAsync()
273272
}
274273

275-
go func() {
276-
// Run the SFTP server.
277-
if err := sftp.New(manager).Run(); err != nil {
278-
log.WithError(err).Fatal("failed to initialize the sftp server")
279-
return
280-
}
281-
}()
274+
// go func() {
275+
// // Run the SFTP server.
276+
// if err := sftp.New(manager).Run(); err != nil {
277+
// log.WithError(err).Fatal("failed to initialize the sftp server")
278+
// return
279+
// }
280+
// }()
282281

283282
go func() {
284283
log.Info("updating server states on Panel: marking installing/restoring servers as normal")

sftp/event.go

-59
This file was deleted.

0 commit comments

Comments
 (0)