From 49723a052cba4da17cc78839ddd13f39df8a1987 Mon Sep 17 00:00:00 2001 From: Parichay Didwania Date: Wed, 5 Jun 2024 17:43:05 -0400 Subject: [PATCH] fix: changed shell to bash --- jenkins.pkr.hcl | 4 ++-- scripts/setup-caddy.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkins.pkr.hcl b/jenkins.pkr.hcl index 99524de..20719fe 100644 --- a/jenkins.pkr.hcl +++ b/jenkins.pkr.hcl @@ -18,7 +18,7 @@ build { sources = ["source.amazon-ebs.ubuntu"] provisioner "shell" { - execute_command = "chmod +x {{ .Path }}; {{ .Vars }} sudo -S -E sh -eux '{{ .Path }}'" + execute_command = "chmod +x {{ .Path }}; {{ .Vars }} sudo -S -E bash -eux '{{ .Path }}'" environment_vars = [ "DEBIAN_FRONTEND=noninteractive" ] @@ -37,7 +37,7 @@ build { provisioner "shell" { - execute_command = "chmod +x {{ .Path }}; {{ .Vars }} sudo -S -E sh -eux '{{ .Path }}'" + execute_command = "chmod +x {{ .Path }}; {{ .Vars }} sudo -S -E bash -eux '{{ .Path }}'" environment_vars = [ "DEBIAN_FRONTEND=noninteractive", "DOMAIN=${var.domain}", diff --git a/scripts/setup-caddy.sh b/scripts/setup-caddy.sh index 355ac92..4967c84 100644 --- a/scripts/setup-caddy.sh +++ b/scripts/setup-caddy.sh @@ -21,7 +21,7 @@ echo "Setting up Caddy for domain: $DOMAIN with email: $EMAIL" sudo mkdir -p /etc/caddy -if [[ $ENVIRONMENT = "PRODUCTION" ]]; then +if [[ "$ENVIRONMENT" = "PRODUCTION" ]]; then cat << EOF > /etc/caddy/Caddyfile { email $EMAIL