mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
rename storageMount
This commit is contained in:
parent
6ef31745b8
commit
6d09e6480f
@ -10,7 +10,7 @@ import (
|
||||
"github.com/navidrome/navidrome/plugins/host"
|
||||
)
|
||||
|
||||
const STORAGE_MOUNT = "/storage"
|
||||
const storageMount = "/storage"
|
||||
|
||||
type storageServiceImpl struct{}
|
||||
|
||||
@ -28,7 +28,7 @@ func newStorageService(pluginName string) (host.StorageService, error) {
|
||||
}
|
||||
|
||||
func (s *storageServiceImpl) GetStoragePath(ctx context.Context) string {
|
||||
return STORAGE_MOUNT
|
||||
return storageMount
|
||||
}
|
||||
|
||||
var _ host.StorageService = (*storageServiceImpl)(nil)
|
||||
|
||||
@ -352,7 +352,7 @@ func (m *Manager) loadPluginWithConfig(p *model.Plugin) error {
|
||||
}
|
||||
|
||||
if pkg.Manifest.HasStoragePermissions() {
|
||||
allowedPaths[getHostStoragePath(p.ID)] = STORAGE_MOUNT
|
||||
allowedPaths[getHostStoragePath(p.ID)] = storageMount
|
||||
}
|
||||
|
||||
pluginManifest.AllowedPaths = allowedPaths
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user