From 06c0526ede0f9d8fb230d1afb5fca9c5640c86e2 Mon Sep 17 00:00:00 2001 From: Philip Henning Date: Tue, 19 Nov 2024 10:55:15 +0100 Subject: [PATCH] fix scrips --- scripts/cert_renew.sh | 2 +- scripts/cert_renew_hook.sh | 2 +- scripts/init.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cert_renew.sh b/scripts/cert_renew.sh index a1b892f..c9dbea6 100755 --- a/scripts/cert_renew.sh +++ b/scripts/cert_renew.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euf -o pipefail -cd "$(dirname "$(realpath "$0")")../" +cd "$(dirname "$(realpath "$0")")/../" lego \ --path ./data/.lego \ diff --git a/scripts/cert_renew_hook.sh b/scripts/cert_renew_hook.sh index a7a9695..9ebd36f 100644 --- a/scripts/cert_renew_hook.sh +++ b/scripts/cert_renew_hook.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -euf -o pipefail -cd "$(dirname "$(realpath "$0")")../" +cd "$(dirname "$(realpath "$0")")/../" docker compose restart nginx diff --git a/scripts/init.sh b/scripts/init.sh index 73fb36a..9d770ce 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -28,7 +28,7 @@ prompt_password() { trap 'printf "\nOperation aborted by user.\n" >&2; rm .env; exit 1' SIGINT -cd "$(dirname "$(realpath "$0")")../" +cd "$(dirname "$(realpath "$0")")/../" # Check if .env exists and exit if it is [[ -f ./.env ]] && echo ".env already exists. Exiting!" && exit 1 || true