mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-24 05:56:02 +03:00
chore(args): rename add_client to add-client
This commit is contained in:
parent
89258ba91d
commit
5b1ec52ac2
@ -40,7 +40,7 @@ It will install WireGuard (kernel module and tools) on the server, configure it,
|
|||||||
To generate more client files, run the following:
|
To generate more client files, run the following:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./wireguard-install.sh add_client
|
./wireguard-install.sh add-client
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure you choose different IPs for you clients.
|
Make sure you choose different IPs for you clients.
|
||||||
|
@ -79,7 +79,7 @@ if [ "$(systemd-detect-virt)" == "lxc" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 == "add_client" ]];then
|
if [[ $1 == "add-client" ]];then
|
||||||
if [[ -e /etc/wireguard ]]; then
|
if [[ -e /etc/wireguard ]]; then
|
||||||
addClient
|
addClient
|
||||||
exit 0
|
exit 0
|
||||||
@ -88,7 +88,7 @@ if [[ $1 == "add_client" ]];then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
elif [[ -e /etc/wireguard ]]; then
|
elif [[ -e /etc/wireguard ]]; then
|
||||||
echo "WireGuard is already installed. Run with 'add_client' to add a client."
|
echo "WireGuard is already installed. Run with 'add-client' to add a client."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user