fix creating directory share if it already exists
This commit is contained in:
parent
cd94a85535
commit
7e0834b69c
1 changed files with 1 additions and 1 deletions
2
main.tf
2
main.tf
|
@ -91,7 +91,7 @@ resource "null_resource" "data_share" {
|
||||||
|
|
||||||
provisioner "remote-exec" {
|
provisioner "remote-exec" {
|
||||||
inline = [
|
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}"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue