Skip to content

Commit

Permalink
Merge pull request #14 from ParichayDidwania/ami-bash
Browse files Browse the repository at this point in the history
fix: changed shell to bash
  • Loading branch information
ParichayDidwania authored Jun 5, 2024
2 parents 13a8ab1 + 49723a0 commit 0e6a91c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jenkins.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand All @@ -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}",
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-caddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e6a91c

Please sign in to comment.