DaDesktop

Hooks

Post-clone Hook

The post-clone hook lets you execute custom code after a machine has been cloned.

  1. Place a file called post-clone.sh into the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate directory.
  2. The working directory is set to the current machine.

Security note: The script runs as root. An incorrectly written script could damage any file across the entire filesystem.