mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-07-01 15:22:55 +00:00
Show usage if unknown command is used
This commit is contained in:
@ -76,7 +76,7 @@ case "$1" in
|
|||||||
echo "help Show this help message"
|
echo "help Show this help message"
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
*)
|
''|'start')
|
||||||
if [ ! -f "/etc/wireguard/$DEVICE.conf" ]; then
|
if [ ! -f "/etc/wireguard/$DEVICE.conf" ]; then
|
||||||
cd /etc/wireguard
|
cd /etc/wireguard
|
||||||
/scripts/create-config.sh
|
/scripts/create-config.sh
|
||||||
@ -91,4 +91,11 @@ case "$1" in
|
|||||||
echo "done!"
|
echo "done!"
|
||||||
tail -f "${WG_LOG_FILE}"
|
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
|
esac
|
||||||
|
Reference in New Issue
Block a user