From 8c9120df6dfe0040d7795d6d735c734b187273a6 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 6 May 2023 15:26:31 +0200 Subject: [PATCH] fix --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 7523c3a..6cfdd33 100644 --- a/main.tf +++ b/main.tf @@ -90,7 +90,7 @@ resource "null_resource" "data_share" { provisioner "remote-exec" { inline = [ - "${var.data_share} != null && mkdir -p --mode=og=rwx /data/${local.domain_name}" + "if [ \"${var.data_share}\" != \"null\"; then mkdir -p --mode=og=rwx /data/${local.domain_name}; fi" ] } }