diff --git a/wireguard-install.sh b/wireguard-install.sh index db81d84..27535aa 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -282,7 +282,7 @@ PostDown = ip6tables -t nat -D POSTROUTING -o ${SERVER_PUB_NIC} -j MASQUERADE" > echo "net.ipv4.ip_forward = 1 net.ipv6.conf.all.forwarding = 1" >/etc/sysctl.d/wg.conf - if [[ ${OS} = 'alpine' ]]; then + if [[ ${OS} == 'alpine' ]]; then sysctl -p /etc/sysctl.d/wg.conf rc-update add sysctl ln -s /etc/init.d/wg-quick "/etc/init.d/wg-quick.${SERVER_WG_NIC}"