Hooks
Post-clone Hook
The post-clone hook allows you to execute custom code after the machine has been cloned.
- Create a file named post-clone.sh in the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate folder.
- The working directory points to the current machine.
Security note: The script is run with root privileges. A faulty script could write to any file on the entire file system.
