Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
F OpenNebula/one-context-linux#275: Remove unnecesary function
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 authored and rsmontero committed Apr 26, 2023
1 parent f598846 commit 0af6e4a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/etc/one-context.d/loc-15-keepalived##vr
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ get_check_script() {
echo $script
}

get_notify_script() {
notify_script="$VROUTER_KEEPALIVED_NOTIFY_SCRIPT"

echo $notify_script
}

get_iface_var() {
var_name="$1_$2"
var=$(eval "echo \"\${$var_name}\"")
Expand Down Expand Up @@ -140,11 +134,9 @@ EOT
}

gen_notify_script() {
notify_script="$(get_notify_script)"

if [ -n "$notify_script" ]; then
if [ -n "$VROUTER_KEEPALIVED_NOTIFY_SCRIPT" ]; then
cat <<EOT
notify "$notify_script"
notify "$VROUTER_KEEPALIVED_NOTIFY_SCRIPT"
EOT
fi
}
Expand Down

0 comments on commit 0af6e4a

Please sign in to comment.