mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
modify setting key
This commit is contained in:
@@ -94,7 +94,7 @@ log_path = log/ezbookkeeping.log
|
|||||||
|
|
||||||
[storage]
|
[storage]
|
||||||
# Object storage type, supports "local_filesystem" and "minio" currently
|
# Object storage type, supports "local_filesystem" and "minio" currently
|
||||||
storage_type = local_filesystem
|
type = local_filesystem
|
||||||
|
|
||||||
# For "local_filesystem" storage only, the storage root path (relative or absolute path)
|
# For "local_filesystem" storage only, the storage root path (relative or absolute path)
|
||||||
local_filesystem_path = storage/
|
local_filesystem_path = storage/
|
||||||
|
|||||||
@@ -553,9 +553,9 @@ func loadLogConfiguration(config *Config, configFile *ini.File, sectionName stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
func loadStorageConfiguration(config *Config, configFile *ini.File, sectionName string) error {
|
func loadStorageConfiguration(config *Config, configFile *ini.File, sectionName string) error {
|
||||||
if getConfigItemStringValue(configFile, sectionName, "storage_type") == LocalFileSystemObjectStorageType {
|
if getConfigItemStringValue(configFile, sectionName, "type") == LocalFileSystemObjectStorageType {
|
||||||
config.StorageType = LocalFileSystemObjectStorageType
|
config.StorageType = LocalFileSystemObjectStorageType
|
||||||
} else if getConfigItemStringValue(configFile, sectionName, "storage_type") == MinIOStorageType {
|
} else if getConfigItemStringValue(configFile, sectionName, "type") == MinIOStorageType {
|
||||||
config.StorageType = MinIOStorageType
|
config.StorageType = MinIOStorageType
|
||||||
} else {
|
} else {
|
||||||
return errs.ErrInvalidStorageType
|
return errs.ErrInvalidStorageType
|
||||||
|
|||||||
Reference in New Issue
Block a user