From 45674c68576619217f9ddfd1e576a6c4fcad5c73 Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Mon, 27 Jan 2025 00:33:02 +0100 Subject: [PATCH] Fix conditional operator --- wireguard-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"