From 628cf1fc1e6e6afdb8305419848b1160ba201edb Mon Sep 17 00:00:00 2001 From: Gavin Henry Date: Fri, 12 Jul 2024 11:46:10 +0100 Subject: [PATCH] Update generate-certificate.sh to write certs etc. to directory it is running in. --- scripts/generate-certificate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/generate-certificate.sh b/scripts/generate-certificate.sh index e797eac1..4b9c97a4 100755 --- a/scripts/generate-certificate.sh +++ b/scripts/generate-certificate.sh @@ -1,7 +1,8 @@ #!/bin/bash set -e -cd $1 +# change to the directory of this script +cd "$(dirname "$0")" # prepare config file for root CA generation cat <> root.cnf