Change add command to use public key as optional param

This commit is contained in:
2022-12-17 09:44:40 +01:00
parent 133c466c26
commit 1bb1be36f8
3 changed files with 35 additions and 3 deletions

View File

@ -13,6 +13,11 @@ case "$1" in
exit 0
;;
'add-client' | 'add')
if [ ! -z $2 ]; then
cd /etc/wireguard
/scripts/add-client.sh $2
exit 0
fi
cd /etc/wireguard
/scripts/add-client.sh
exit 0