add chmod+x KEEPALIVED_NOTIFY file

This commit is contained in:
Bertrand Gouny 2015-12-21 10:20:18 +01:00
parent b0905af741
commit b779b4d438
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
if [ -n "$KEEPALIVED_NOTIFY" ]; then
sed -i --follow-symlinks --follow-symlinks "s|{{ keepalived_notify }}|notify \"$KEEPALIVED_NOTIFY\"|g" /etc/keepalived/keepalived.conf
chmod +x $KEEPALIVED_NOTIFY
else
sed -i --follow-symlinks --follow-symlinks "/{{ keepalived_notify }}/d" /etc/keepalived/keepalived.conf
fi