Open dieskim opened 1 year ago
https://github.com/MartineauUK/wireguard/blob/main/wg_manager.sh#L5810C13-L5810C25
SITE_ONE_LAN=$('NR==1{print $NF}' /opt/etc/wireguard.d/$WG_INTERFACE.conf)
Should read
SITE_ONE_LAN=$(awk 'NR==1{print $NF}' /opt/etc/wireguard.d/$WG_INTERFACE.conf)
site2site add command seems like it has a few more bugs - ill try to fix them and report back
site2site add
https://github.com/MartineauUK/wireguard/blob/main/wg_manager.sh#L5810C13-L5810C25
SITE_ONE_LAN=$('NR==1{print $NF}' /opt/etc/wireguard.d/$WG_INTERFACE.conf)
Should read
SITE_ONE_LAN=$(awk 'NR==1{print $NF}' /opt/etc/wireguard.d/$WG_INTERFACE.conf)