mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
Quick support to server level WORM (#5602)
This is a trival fix to support server level WORM. The feature comes with an environment variable `MINIO_WORM`. Usage: ``` $ export MINIO_WORM=on $ minio server endpoint ```
This commit is contained in:
@@ -158,4 +158,7 @@ func handleCommonEnvVars() {
|
||||
globalIsStorageClass = true
|
||||
}
|
||||
}
|
||||
|
||||
// Get WORM environment variable.
|
||||
globalWORMEnabled = strings.EqualFold(os.Getenv("MINIO_WORM"), "on")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user