From 6d752b1332f8f0a30f14aaccc41c53a4f4a5c770 Mon Sep 17 00:00:00 2001 From: Mario Alegre Date: Sat, 19 Dec 2020 23:39:55 -0500 Subject: [PATCH] minor changes --- bin/wg-addpeer | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/wg-addpeer b/bin/wg-addpeer index 015f014..6abd652 100755 --- a/bin/wg-addpeer +++ b/bin/wg-addpeer @@ -12,7 +12,9 @@ if [[ $# -lt 1 || $# -gt 1 ]]; then fi dest="$1" -. ../ssh/ssh-persist $dest +# script expects ssh-persist to be either in the same directory, or in the path +cd $(dirname $0) +. ssh-persist $dest # gather host info host_name=$(hostname)