No empty sections in auth conf file.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Fri, 26 Mar 2010 16:16:06 +0000 (16:16 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Fri, 26 Mar 2010 16:16:06 +0000 (16:16 +0000)
org.glite.lb.yaim/config/functions/config_glite_lb

index 2fbbc32..c41eb6b 100644 (file)
@@ -58,18 +58,30 @@ function config_glite_lb_authz() {
        cat <<EOF > "$GLITE_LOCATION/etc/glite-lb-authz.conf.new"
 resource "LB" {
 
+EOF
+       if test ! -z "$superusers"; then
+               cat <<EOF >> "$GLITE_LOCATION/etc/glite-lb-authz.conf.new"
 action "ADMIN_ACCESS" {
        rule permit {
 $superusers
        }
 }
 
+EOF
+       fi
+
+       if test ! -z "$rtm"; then
+               cat <<EOF >> "$GLITE_LOCATION/etc/glite-lb-authz.conf.new"
 action "STATUS_FOR_MONITORING" {
        rule permit {
 $rtm
        }
 }
 
+EOF
+       fi
+
+       cat <<EOF >> "$GLITE_LOCATION/etc/glite-lb-authz.conf.new"
 action "LOG_WMS_EVENTS" {
        rule permit {
                subject = ".*"