Browse Source

Install UFW only if needed

master
e7d 6 years ago
parent
commit
d6cc30e9f5
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      openvpn/start.sh

+ 5
- 1
openvpn/start.sh View File

@@ -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"

Loading…
Cancel
Save