DaDesktop

Hooks

After-Cloning Hook

The after-cloning hook enables you to execute custom code once the machine cloning process is complete.

  1. Place a file named post-clone.sh inside either the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate directory.
  2. The current working directory points to the machine being configured.

Security note: The script is executed with root privileges. An incorrectly written script could potentially alter any file on the entire file system.