add notify script
This commit is contained in:
		
							parent
							
								
									84c261f102
								
							
						
					
					
						commit
						00a8279068
					
				@ -24,7 +24,6 @@ if [ ! -e "$FIRST_START_DONE" ]; then
 | 
			
		||||
 | 
			
		||||
      if [ -n "$KEEPALIVED_NOTIFY" ]; then
 | 
			
		||||
        sed -i "s|{{ keepalived_notify }}|notify \"$KEEPALIVED_NOTIFY\"|g" /etc/keepalived/keepalived.conf
 | 
			
		||||
        chmod 777 $KEEPALIVED_NOTIFY
 | 
			
		||||
      else
 | 
			
		||||
        sed -i "/{{ keepalived_notify }}/d" /etc/keepalived/keepalived.conf
 | 
			
		||||
      fi
 | 
			
		||||
@ -60,9 +59,6 @@ if [ ! -e "$FIRST_START_DONE" ]; then
 | 
			
		||||
      sed -i "/{{ keepalived_virtual_ips }}/d" /etc/keepalived/keepalived.conf
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    cat /etc/keepalived/keepalived.conf
 | 
			
		||||
    cat $KEEPALIVED_NOTIFY
 | 
			
		||||
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  touch $FIRST_START_DONE
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user