Hooks
Post-clone Hook
The Post-clone hook enables the execution of custom scripts once the machine cloning process is complete.
- Generate a file named post-clone.sh within the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate directory.
- Be aware that the working directory will be set to the specific machine being processed.
Important security note: This script runs with root privileges. Errors in the script logic could potentially result in unauthorized modifications to any file across the entire file system.