From 6296463806ee4c65291ac0e3bb6dec6dfd3a8281 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sat, 18 Feb 2012 04:41:59 +0700 Subject: Bug #7787: Allow using custom command line arguments in transition scripts. --- scripts/keepalived/vyatta-keepalived.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl index 3911588a..d0eb11ca 100755 --- a/scripts/keepalived/vyatta-keepalived.pl +++ b/scripts/keepalived/vyatta-keepalived.pl @@ -302,11 +302,11 @@ sub keepalived_get_values { } $output .= "\t\}\n"; $output .= "\tnotify_master \"$state_transition_script master "; - $output .= "$intf $group $transition_intf $run_master_script @vips\" \n"; + $output .= "$intf $group $transition_intf \'$run_master_script\' @vips\" \n"; $output .= "\tnotify_backup \"$state_transition_script backup "; - $output .= "$intf $group $transition_intf $run_backup_script @vips\" \n"; + $output .= "$intf $group $transition_intf \'$run_backup_script\' @vips\" \n"; $output .= "\tnotify_fault \"$state_transition_script fault "; - $output .= "$intf $group $transition_intf $run_fault_script @vips\" \n"; + $output .= "$intf $group $transition_intf \'$run_fault_script\' @vips\" \n"; $output .= "\}\n\n"; } -- cgit v1.2.3