generate-DH-parameters.sh: Fix error creating log-directory.

This commit is contained in:
Christoph 2024-02-20 13:37:18 +01:00
parent 748e47b70b
commit dce2603bad

View File

@ -3,6 +3,7 @@
script_name="$(basename $(realpath $0))"
working_dir="$(dirname $(realpath $0))"
LOCK_DIR="$(mktemp -d)"
log_file="${LOCK_DIR}/${script_name%%.*}.log"
backup_date="$(date +%Y-%m-%d-%H%M)"
@ -157,10 +158,6 @@ get_openssl_version() {
# -
trap clean_up SIGHUP SIGINT SIGTERM
# - Create lock directory '$LOCK_DIR"
#
mkdir "$LOCK_DIR"
# Detect OpenSSL version
#
get_openssl_version