mirror of
https://github.com/unraid/webgui.git
synced 2026-01-02 07:30:06 -06:00
15 lines
431 B
Bash
Executable File
15 lines
431 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# delete the docker image file or folder
|
|
if [[ -f /boot/config/docker.cfg ]]; then
|
|
rm -f /var/local/emhttp/plugins/dynamix.docker.manager/docker.json
|
|
. /boot/config/docker.cfg
|
|
if [[ -f $DOCKER_IMAGE_FILE ]]; then
|
|
echo "Deleting $DOCKER_IMAGE_FILE ..."
|
|
rm -f "$DOCKER_IMAGE_FILE"
|
|
elif [[ -d $DOCKER_IMAGE_FILE ]]; then
|
|
echo "Deleting $DOCKER_IMAGE_FILE ..."
|
|
rm -rf "$DOCKER_IMAGE_FILE"
|
|
fi
|
|
fi
|