From d6cc30e9f57da66d8f69efbb2936931bd25c46ce Mon Sep 17 00:00:00 2001 From: e7d Date: Fri, 19 Jan 2018 15:53:09 +0100 Subject: [PATCH] Install UFW only if needed --- openvpn/start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"