diff --git a/docker/scripts/kasm.sh b/docker/scripts/kasm.sh deleted file mode 100644 index e287f43..0000000 --- a/docker/scripts/kasm.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Navigate to the directory -cd /home/mafyuh/iac/docker/kasm - -# Pull the latest changes -git pull - -# Run docker compose up -d -dcu \ No newline at end of file diff --git a/terraform/kasm.tf b/terraform/kasm.tf index ad4c440..7429341 100644 --- a/terraform/kasm.tf +++ b/terraform/kasm.tf @@ -62,7 +62,9 @@ resource "proxmox_virtual_environment_vm" "Kasm" { provisioner "remote-exec" { inline = [ - "sudo bash /home/mafyuh/iac/docker/scripts/kasm.sh" + "cd /home/mafyuh/iac/docker/kasm", + "git pull", + "docker compose up -d" ] connection { type = "ssh"