Files
webgui/emhttp/plugins/dynamix.vm.manager/scripts/libvirt_rm
Tom Mortensen f9ec00b488 repo reorg
2023-06-02 12:49:33 -07: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