mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 09:43:18 +09:00
Enabling image hook by default
This commit is contained in:
1 parent
2c4171904b
commit
cc88849620
2 files changed
+14
-17
No files matched your search
@@ -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
@@ -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 --------------------------------
|
||||
|
||||
Reference in new issue
Block a user