From ff6d28d5a29b6ca8df466f4cd93f63cbe9df3c8c Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 30 Jan 2023 19:19:48 +0100 Subject: [PATCH] Show usage if unknown command is used --- scripts/entrypoint.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 86f0a95..765159d 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -76,7 +76,7 @@ case "$1" in echo "help Show this help message" echo ;; - *) + ''|'start') if [ ! -f "/etc/wireguard/$DEVICE.conf" ]; then cd /etc/wireguard /scripts/create-config.sh @@ -91,4 +91,11 @@ case "$1" in echo "done!" tail -f "${WG_LOG_FILE}" ;; + *) + echo "Usage: docker-compose run wg {ls|add|rm|show|init|purge|help}" + echo " or: docker-compose run wg start" + echo " docker-compose up [-d]" + echo " to start services" + exit 1 + ;; esac