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
|
if [ -n "$KEEPALIVED_NOTIFY" ]; then
|
||||||
sed -i "s|{{ keepalived_notify }}|notify \"$KEEPALIVED_NOTIFY\"|g" /etc/keepalived/keepalived.conf
|
sed -i "s|{{ keepalived_notify }}|notify \"$KEEPALIVED_NOTIFY\"|g" /etc/keepalived/keepalived.conf
|
||||||
chmod 777 $KEEPALIVED_NOTIFY
|
|
||||||
else
|
else
|
||||||
sed -i "/{{ keepalived_notify }}/d" /etc/keepalived/keepalived.conf
|
sed -i "/{{ keepalived_notify }}/d" /etc/keepalived/keepalived.conf
|
||||||
fi
|
fi
|
||||||
|
@ -60,9 +59,6 @@ if [ ! -e "$FIRST_START_DONE" ]; then
|
||||||
sed -i "/{{ keepalived_virtual_ips }}/d" /etc/keepalived/keepalived.conf
|
sed -i "/{{ keepalived_virtual_ips }}/d" /etc/keepalived/keepalived.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat /etc/keepalived/keepalived.conf
|
|
||||||
cat $KEEPALIVED_NOTIFY
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch $FIRST_START_DONE
|
touch $FIRST_START_DONE
|
||||||
|
|
Loading…
Reference in New Issue