Compare commits

..

2 Commits

Author SHA1 Message Date
0d622723ac Add SPDX headers to Docker script 2025-11-12 22:33:12 -05:00
94e50e97e1 Support configuration file for Gotify setup 2025-11-12 22:29:45 -05:00
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2025 Kris Lamoureux
# SPDX-License-Identifier: 0BSD
unset DOCKER_HOST
exec /usr/bin/docker "$@"

View File

@@ -16,12 +16,17 @@ if [ $# -lt 3 ]; then
exit 1
fi
if [ -z "$GOTIFY_URL" ]; then
if [ -d ~/.config/gotify ] && [ -f ~/.config/gotify/env ]; then
# shellcheck disable=SC1090
. ~/.config/gotify/env
fi
if [ -z "${GOTIFY_URL:-}" ]; then
echo "[ERROR]: GOTIFY_URL environment variable is not set"
exit 1
fi
if [ -z "$GOTIFY_TOKEN" ]; then
if [ -z "${GOTIFY_TOKEN:-}" ]; then
echo "[ERROR]: GOTIFY_TOKEN environment variable is not set"
exit 1
fi