[node-patches] Change in ovirt-node[master]: ovirt-init-functions: executes on-boot hooks if exists
dougsland at redhat.com
dougsland at redhat.com
Thu Aug 7 14:09:47 UTC 2014
Douglas Schilling Landgraf has uploaded a new change for review.
Change subject: ovirt-init-functions: executes on-boot hooks if exists
......................................................................
ovirt-init-functions: executes on-boot hooks if exists
Currently, we try to run on-boot hooks even if there are
no hooks files in the on-boot dir.
This patchs adds a validation to look for on-boot hooks
if the dir is not empty.
Change-Id: Iefa5ca7614c1a7687dd0b51a3a51ec7015853152
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/08/31208/1
diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 8490ec3..621d06e 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -1008,7 +1008,7 @@
firewall.process_plugins()
EOP
- if [[ -d "$HOOK_ON_BOOT_DIR" ]];
+ if [[ -d "$HOOK_ON_BOOT_DIR" ]] && [[ "$(ls -A $HOOK_ON_BOOT_DIR)" ]];
then
for handler in "$HOOK_ON_BOOT_DIR"/*;
do
--
To view, visit http://gerrit.ovirt.org/31208
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iefa5ca7614c1a7687dd0b51a3a51ec7015853152
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
More information about the node-patches
mailing list