"Fossies" - the Fresh Open Source Software Archive

Member "octavia-3.0.2/elements/keepalived-octavia/post-install.d/11-ip6-tables" (19 Dec 2018, 384 Bytes) of package /linux/misc/openstack/octavia-3.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 # keepalived older than 1.3 will segfault when using IPv6 VIPs if the
    3 # ip6_tables module is not loaded. Make sure it is loaded on releases we
    4 # know have the older version.
    5 
    6 set -eu
    7 set -o xtrace
    8 
    9 if [ "$DISTRO_NAME" == "ubuntu" ] && { [ "$DIB_RELEASE" == "trusty" ] || [ "$DIB_RELEASE" == "xenial" ]; }; then
   10     echo ip6_tables > /etc/modules-load.d/ip6_tables.conf
   11 fi