updated readme, regex instead of endswith

This commit is contained in:
Stephen Kirby
2023-10-05 21:45:09 +00:00
parent fe230ec764
commit 5146af839d
2 changed files with 12 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
terraform {
required_version = ">= 1.3"
required_version = ">= 1.0"
required_providers {
coder = {
@@ -20,7 +20,7 @@ variable "database_path" {
description = "The path to the filebrowser database."
default = "filebrowser.db"
validation {
condition = endswith(var.database_path, "filebrowser.db")
condition = can(regex(".*filebrowser\\.db$", var.database_path))
error_message = "The database_path must end with 'filebrowser.db'."
}
}