mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-04-19 13:26:50 +00:00
Show usage if unknown command is used
This commit is contained in:
parent
e62a72bc3b
commit
ff6d28d5a2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user