aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislas Lange <angristan@pm.me>2020-04-28 15:02:30 +0200
committerStanislas Lange <angristan@pm.me>2020-04-28 15:02:30 +0200
commit5b1ec52ac26bc9bc1f840e1b6cea566ef6d6abc9 (patch)
tree8203f330d1b5fbfce525ded8c6260e1b9d746910
parent89258ba91d5d8720c56466501c2fb23123deef2f (diff)
chore(args): rename add_client to add-client
-rw-r--r--README.md2
-rw-r--r--wireguard-install.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index fb81e47..94c1005 100644
--- a/README.md
+++ b/README.md
@@ -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:
```sh
-./wireguard-install.sh add_client
+./wireguard-install.sh add-client
```
Make sure you choose different IPs for you clients.
diff --git a/wireguard-install.sh b/wireguard-install.sh
index 031dc33..c811ce8 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -79,7 +79,7 @@ if [ "$(systemd-detect-virt)" == "lxc" ]; then
exit
fi
-if [[ $1 == "add_client" ]];then
+if [[ $1 == "add-client" ]];then
if [[ -e /etc/wireguard ]]; then
addClient
exit 0
@@ -88,7 +88,7 @@ if [[ $1 == "add_client" ]];then
exit 1
fi
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
fi