Browse Source

wg-installer: fix shell typo

Signed-off-by: Nick Hainke <vincent@systemli.org>
lilik-openwrt-22.03
Nick Hainke 3 years ago
parent
commit
53503c4a3a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/wg-installer/wg-server/lib/wg_functions.sh

+ 1
- 1
net/wg-installer/wg-server/lib/wg_functions.sh View File

@ -54,7 +54,7 @@ wg_register () {
gw_key=$(uci get wgserver.@server[0].wg_key) gw_key=$(uci get wgserver.@server[0].wg_key)
gw_pub=$(uci get wgserver.@server[0].wg_pub) 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 [ -d "/tmp/run/wgserver" ] || mkdir -p /tmp/run/wgserver
gw_key="/tmp/run/wgserver/${ifname}.key" gw_key="/tmp/run/wgserver/${ifname}.key"
gw_pub="/tmp/run/wgserver/${ifname}.pub" gw_pub="/tmp/run/wgserver/${ifname}.pub"


Loading…
Cancel
Save