Skip to content

Commit

Permalink
remove redundant pushd/popd
Browse files Browse the repository at this point in the history
  • Loading branch information
coreypurcell committed Oct 29, 2024
1 parent 753a3fa commit 5783c7b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions heroku-20/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,10 @@ cp /build/imagemagick-policy.xml /etc/ImageMagick-6/policy.xml

# Install AWS RDS global CA bundle (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html#UsingWithRDS.SSL.CertificatesAllRegions)
mkdir -p /usr/local/share/ca-certificates/rds-ca-certs
pushd /usr/local/share/ca-certificates/rds-ca-certs
awk '
split_after == 1 {n++;split_after=0}
/-----END CERTIFICATE-----/ {split_after=1}
{print > "/usr/local/share/ca-certificates/rds-ca-certs/rds-ca" n ".crt"}' < /build/rds-global-bundle.pem
popd
update-ca-certificates

# Install ca-certificates-java so that the JVM buildpacks can configure Java apps to use the Java certs
Expand Down
2 changes: 0 additions & 2 deletions heroku-22/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,10 @@ cp /build/imagemagick-policy.xml /etc/ImageMagick-6/policy.xml

# Install AWS RDS global CA bundle (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html#UsingWithRDS.SSL.CertificatesAllRegions)
mkdir -p /usr/local/share/ca-certificates/rds-ca-certs
pushd /usr/local/share/ca-certificates/rds-ca-certs
awk '
split_after == 1 {n++;split_after=0}
/-----END CERTIFICATE-----/ {split_after=1}
{print > "/usr/local/share/ca-certificates/rds-ca-certs/rds-ca" n ".crt"}' < /build/rds-global-bundle.pem
popd
update-ca-certificates

# Install ca-certificates-java so that the JVM buildpacks can configure Java apps to use the Java certs
Expand Down
2 changes: 0 additions & 2 deletions heroku-24/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,10 @@ locale-gen en_US.UTF-8

# Install AWS RDS global CA bundle (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html#UsingWithRDS.SSL.CertificatesAllRegions)
mkdir -p /usr/local/share/ca-certificates/rds-ca-certs
pushd /usr/local/share/ca-certificates/rds-ca-certs
awk '
split_after == 1 {n++;split_after=0}
/-----END CERTIFICATE-----/ {split_after=1}
{print > "/usr/local/share/ca-certificates/rds-ca-certs/rds-ca" n ".crt"}' < /build/rds-global-bundle.pem
popd
update-ca-certificates

# Install ca-certificates-java so that the JVM buildpacks can configure Java apps to use the Java certs
Expand Down

0 comments on commit 5783c7b

Please sign in to comment.