Set the default share backend to SMB for Linux
This commit is contained in:
parent
e25069e1f3
commit
4d504f70d1
1 changed files with 1 additions and 3 deletions
|
|
@ -147,12 +147,10 @@ func init() {
|
||||||
|
|
||||||
var defaultShareType string
|
var defaultShareType string
|
||||||
switch {
|
switch {
|
||||||
case osspecifics.IsWindows():
|
|
||||||
defaultShareType = "smb"
|
|
||||||
case osspecifics.IsMacOS():
|
case osspecifics.IsMacOS():
|
||||||
defaultShareType = "afp"
|
defaultShareType = "afp"
|
||||||
default:
|
default:
|
||||||
defaultShareType = "ftp"
|
defaultShareType = "smb"
|
||||||
}
|
}
|
||||||
|
|
||||||
runCmd.Flags().StringVar(&shareBackendFlag, "share-backend", defaultShareType, `Specifies the file share backend to use. The default value is OS-specific. (available "smb", "afp", "ftp")`)
|
runCmd.Flags().StringVar(&shareBackendFlag, "share-backend", defaultShareType, `Specifies the file share backend to use. The default value is OS-specific. (available "smb", "afp", "ftp")`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue