diff --git a/openvpn/start.sh b/openvpn/start.sh index eacbf6d9b..3ff4860dd 100755 --- a/openvpn/start.sh +++ b/openvpn/start.sh @@ -50,7 +50,11 @@ dockerize -template /etc/transmission/environment-variables.tmpl:/etc/transmissi TRANSMISSION_CONTROL_OPTS="--script-security 2 --up-delay --up /etc/transmission/start.sh --down /etc/transmission/stop.sh" if [ "true" = "$ENABLE_UFW" ]; then - apk add --no-cache ufw@testing + if [ ! -e ufw ]; then + echo "UFW not found, installing" + echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories + apk add --no-cache ip6tables ufw@testing + fi # Enable firewall echo "enabling firewall"