Files
webgui/plugins/dynamix.vm.manager/scripts/libvirt_rm
2016-04-14 17:41:46 -05:00

11 lines
241 B
Bash
Executable File

#!/bin/bash
# delete the libvirt image file
if [ -f /boot/config/domain.cfg ]; then
. /boot/config/domain.cfg
if [ "${IMAGE_FILE}" != "" -a -f "${IMAGE_FILE}" ]; then
echo "Deleting ${IMAGE_FILE} ..."
rm "${IMAGE_FILE}"
fi
fi