#!/bin/sh ## Hack to prevent wg-quick from failing when attempting ## to change the net.ipv4.conf.all.src_valid_mark sysctl. ## This sysctl is set by docker compose instead, making ## the call unneccessary anyways. rm /sbin/sysctl printf "#!/bin/sh\ntrue \$@\n" > /sbin/sysctl chmod +x /sbin/sysctl cp /run/secrets/wg-config /etc/wireguard/wg0.conf wg-quick up wg0 exec sleep infinite