From 7e0834b69c763aa6d61a05c976ee484b04713df2 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 25 Apr 2023 22:53:23 +0200 Subject: [PATCH] fix creating directory share if it already exists --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 51b0018..dc55b9f 100644 --- a/main.tf +++ b/main.tf @@ -91,7 +91,7 @@ resource "null_resource" "data_share" { provisioner "remote-exec" { inline = [ - "${var.add_data_share} && mkdir --mode=og=rw /data/${local.domain_name}" + "${var.add_data_share} && mkdir -p --mode=og=rw /data/${local.domain_name}" ] } }