mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
update nfpm
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
NFPM_VERSION=2.4.0
|
NFPM_VERSION=2.5.0
|
||||||
NFPM_ARCH=${NFPM_ARCH:-amd64}
|
NFPM_ARCH=${NFPM_ARCH:-amd64}
|
||||||
if [ -z ${SFTPGO_VERSION} ]
|
if [ -z ${SFTPGO_VERSION} ]
|
||||||
then
|
then
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// osFsName is the name for the local Fs implementation
|
// sftpFsName is the name for the SFTP Fs implementation
|
||||||
sftpFsName = "sftpfs"
|
sftpFsName = "sftpfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ type SFTPFs struct {
|
|||||||
err chan error
|
err chan error
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSFTPFs returns an SFTPFa object that allows to interact with an SFTP server
|
// NewSFTPFs returns an SFTPFs object that allows to interact with an SFTP server
|
||||||
func NewSFTPFs(connectionID, mountPath, localTempDir string, forbiddenSelfUsernames []string, config SFTPFsConfig) (Fs, error) {
|
func NewSFTPFs(connectionID, mountPath, localTempDir string, forbiddenSelfUsernames []string, config SFTPFsConfig) (Fs, error) {
|
||||||
if localTempDir == "" {
|
if localTempDir == "" {
|
||||||
localTempDir = filepath.Clean(os.TempDir())
|
localTempDir = filepath.Clean(os.TempDir())
|
||||||
|
|||||||
Reference in New Issue
Block a user