Enabling image hook by default

This commit is contained in:
Jaime Melis committed 2010-07-21 19:00:47 +02:00
1 parent 2c4171904b
commit cc88849620
2 files changed
+14 -17

No files matched your search

+7
View File
@@ -636,3 +636,10 @@ else
rmdir $d
done
fi
# --- Substitute variables ---
if [ $INSTALL_ETC="yes" ]; then
HOOK_LOCATION=$(cd $SHARE_LOCATION/hooks;pwd)
sed -i "s%\[ONE_HOOKS\]%$HOOK_LOCATION%" $ETC_LOCATION/oned.conf
fi
+7 -17
View File
@@ -259,26 +259,16 @@ TM_MAD = [
HM_MAD = [
executable = "one_hm" ]
#-------------------------------- Image Hook -----------------------------------
# This hook is used to handle image saving and overwriting when virtual machines
# reach the DONE state after being shutdown.
#
# Uncomment one of the following:
#
# Self-contained (substitute [ONE_LOCATION] with its proper path)
# VM_HOOK = [
# name = "image",
# on = "SHUTDOWN",
# command = "[ONE_LOCATION]/share/hooks/image.rb",
# arguments = "$VMID" ]
#
# System-wide
# VM_HOOK = [
# name = "image",
# on = "SHUTDOWN",
# command = "/usr/share/doc/opennebula/hooks/image.rb",
# arguments = "$VMID" ]
VM_HOOK = [
name = "image",
on = "SHUTDOWN",
command = "[ONE_HOOKS]/image.rb",
arguments = "$VMID" ]
#-------------------------------------------------------------------------------
#-------------------------------- Hook Examples --------------------------------