2024-01-01 11:31:45 +01:00
|
|
|
// Copyright (C) 2019 Nicola Murino
|
2022-07-17 20:16:00 +02:00
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as published
|
|
|
|
// by the Free Software Foundation, version 3.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
2023-01-03 10:18:30 +01:00
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2022-07-17 20:16:00 +02:00
|
|
|
|
2020-09-06 11:40:31 +02:00
|
|
|
// Fully featured and highly configurable SFTP server with optional
|
2021-01-05 09:50:22 +01:00
|
|
|
// FTP/S and WebDAV support.
|
2020-09-06 11:40:31 +02:00
|
|
|
// For more details about features, installation, configuration and usage
|
|
|
|
// please refer to the README inside the source tree:
|
2021-02-09 19:53:03 +01:00
|
|
|
// https://github.com/drakkan/sftpgo/blob/main/README.md
|
2019-07-20 12:26:52 +02:00
|
|
|
package main // import "github.com/drakkan/sftpgo"
|
|
|
|
|
2020-09-03 18:09:45 +02:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"go.uber.org/automaxprocs/maxprocs"
|
|
|
|
|
2022-07-24 16:18:54 +02:00
|
|
|
"github.com/drakkan/sftpgo/v2/internal/cmd"
|
2020-09-03 18:09:45 +02:00
|
|
|
)
|
2019-07-20 12:26:52 +02:00
|
|
|
|
|
|
|
func main() {
|
2020-09-03 18:09:45 +02:00
|
|
|
if undo, err := maxprocs.Set(); err != nil {
|
|
|
|
fmt.Printf("error setting max procs: %v\n", err)
|
|
|
|
undo()
|
|
|
|
}
|
2019-08-07 22:46:13 +02:00
|
|
|
cmd.Execute()
|
2019-07-20 12:26:52 +02:00
|
|
|
}
|