DaDesktop

Hooks

Post-clone Hook

Post-clone hook lets you run custom code after the machine has been cloned.

  1. Create a file named post-clone.sh in a /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate folder.
  2. The current directory points to the current machine.

Security consideration: The script runs with root privileges. An incorrectly written script could modify any file on the entire file system.