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