diff --git a/Makefile b/Makefile index 2b20c91..dc45221 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ HOSTNAME=local NAMESPACE=badarsebard NAME=xsoar BINARY=terraform-provider-${NAME} -VERSION=0.3.12 +VERSION=0.3.13 OS=${MY_OS} ARCH=${MY_ARCH} diff --git a/xsoar/resource_host.go b/xsoar/resource_host.go index d6a1e86..1bc97b0 100644 --- a/xsoar/resource_host.go +++ b/xsoar/resource_host.go @@ -278,7 +278,7 @@ func (r resourceHost) Create(ctx context.Context, req tfsdk.CreateResourceReques return } defer session.Close() - err = session.Run(fmt.Sprintf(`touch %s/xsoar_host_install.lock`, plan.NFSMount.Value)) + err = session.Run(fmt.Sprintf(`sudo touch %s/xsoar_host_install.lock`, plan.NFSMount.Value)) if err != nil { resp.Diagnostics.AddError( "Error creating lock file", @@ -363,7 +363,7 @@ func (r resourceHost) Create(ctx context.Context, req tfsdk.CreateResourceReques return } defer session.Close() - err = session.Run(fmt.Sprintf(`rm %s/xsoar_host_install.lock`, plan.NFSMount.Value)) + err = session.Run(fmt.Sprintf(`sudo rm %s/xsoar_host_install.lock`, plan.NFSMount.Value)) if err != nil { resp.Diagnostics.AddError( "Error creating lock file",