fix scrips

This commit is contained in:
Philip Henning 2024-11-19 10:55:15 +01:00
parent ae3d5e4df7
commit 06c0526ede
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euf -o pipefail set -euf -o pipefail
cd "$(dirname "$(realpath "$0")")../" cd "$(dirname "$(realpath "$0")")/../"
lego \ lego \
--path ./data/.lego \ --path ./data/.lego \

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euf -o pipefail set -euf -o pipefail
cd "$(dirname "$(realpath "$0")")../" cd "$(dirname "$(realpath "$0")")/../"
docker compose restart nginx docker compose restart nginx

View file

@ -28,7 +28,7 @@ prompt_password() {
trap 'printf "\nOperation aborted by user.\n" >&2; rm .env; exit 1' SIGINT 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 # Check if .env exists and exit if it is
[[ -f ./.env ]] && echo ".env already exists. Exiting!" && exit 1 || true [[ -f ./.env ]] && echo ".env already exists. Exiting!" && exit 1 || true