"Fossies" - the Fresh Open Source Software Archive

Member "octavia-3.0.2/elements/haproxy-octavia/post-install.d/20-haproxy-user-group-config" (19 Dec 2018, 354 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 
    3 set -eu
    4 set -o pipefail
    5 
    6 case $DISTRO_NAME in
    7     ubuntu | debian )
    8         HAPROXY_USER_GROUP=nogroup
    9     ;;
   10     fedora | centos* | rhel* )
   11         HAPROXY_USER_GROUP=haproxy
   12     ;;
   13     *)
   14         HAPROXY_USER_GROUP=nogroup
   15     ;;
   16 esac
   17 
   18 cat >> /var/lib/octavia/haproxy-default-user-group.conf <<EOF
   19 global
   20     group $HAPROXY_USER_GROUP
   21 EOF