mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
add support for build tag to allow to disable some features
The following build tags are available: - "nogcs", disable Google Cloud Storage backend - "nos3", disable S3 Compabible Object Storage backends - "nobolt", disable Bolt data provider - "nomysql", disable MySQL data provider - "nopgsql", disable PostgreSQL data provider - "nosqlite", disable SQLite data provider - "noportable", disable portable mode
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// +build !nobolt
|
||||
|
||||
package dataprovider
|
||||
|
||||
import (
|
||||
@@ -52,6 +54,10 @@ type compatUserV2 struct {
|
||||
Status int `json:"status"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
utils.AddFeature("+bolt")
|
||||
}
|
||||
|
||||
func initializeBoltProvider(basePath string) error {
|
||||
var err error
|
||||
logSender = fmt.Sprintf("dataprovider_%v", BoltDataProviderName)
|
||||
|
||||
Reference in New Issue
Block a user