Fix SFTP default configuration; closes pterodactyl/panel#2045

This commit is contained in:
Dane Everitt
2020-05-25 15:51:36 -07:00
parent bd063682dc
commit 6d7ab865d7
3 changed files with 3 additions and 8 deletions

View File

@@ -196,10 +196,8 @@ func rootCmdRun(*cobra.Command, []string) {
// Wait until all of the servers are ready to go before we fire up the HTTP server.
wg.Wait()
// If the SFTP subsystem should be started, do so now.
if c.System.Sftp.UseInternalSystem {
sftp.Initialize(c)
}
// Initalize SFTP.
sftp.Initialize(c)
// Ensure the archive directory exists.
if err := os.MkdirAll(c.System.ArchiveDirectory, 0755); err != nil {