projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f21f39c
)
wg-installer: fix shell typo
author
Nick Hainke
<vincent@systemli.org>
Wed, 12 Jan 2022 17:25:13 +0000
(18:25 +0100)
committer
Nick Hainke
<vincent@systemli.org>
Wed, 12 Jan 2022 21:43:41 +0000
(22:43 +0100)
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit
53503c4a3a6660a67e88a37876a87e9b824ee03c
)
net/wg-installer/wg-server/lib/wg_functions.sh
patch
|
blob
|
history
diff --git
a/net/wg-installer/wg-server/lib/wg_functions.sh
b/net/wg-installer/wg-server/lib/wg_functions.sh
index 845bfb7294958c9ccb39081892adff6dc81e57f1..ec0d7aaf9a3d540b53b314836f90358da3a4c104 100644
(file)
--- a/
net/wg-installer/wg-server/lib/wg_functions.sh
+++ b/
net/wg-installer/wg-server/lib/wg_functions.sh
@@
-54,7
+54,7
@@
wg_register () {
gw_key=$(uci get wgserver.@server[0].wg_key)
gw_pub=$(uci get wgserver.@server[0].wg_pub)
- if [ $(uci get wgserver.@server[0].wg_tmp_key) -eq 1]; then
+ if [ $(uci get wgserver.@server[0].wg_tmp_key) -eq 1
]; then
[ -d "/tmp/run/wgserver" ] || mkdir -p /tmp/run/wgserver
gw_key="/tmp/run/wgserver/${ifname}.key"
gw_pub="/tmp/run/wgserver/${ifname}.pub"