DaDesktop

Hooks

Post-clone Hook

After the machine has been cloned, the post-clone hook lets you run any custom code.

  1. Create a file called post-clone.sh within the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate folder.
  2. The current directory points to the machine you are working on.

Security note: The script is run with root privileges. An incorrectly written script may write to any file on the entire file system.