mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 08:19:27 -05:00
Docker: allow BTRFS or XFS or folder as vdisk location
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# delete the docker image file
|
||||
if [ -f /boot/config/docker.cfg ]; then
|
||||
# delete the docker image file or folder
|
||||
if [[ -f /boot/config/docker.cfg ]]; then
|
||||
. /boot/config/docker.cfg
|
||||
if [ "${DOCKER_IMAGE_FILE}" != "" -a -f "${DOCKER_IMAGE_FILE}" ]; then
|
||||
echo "Deleting ${DOCKER_IMAGE_FILE} ..."
|
||||
rm "${DOCKER_IMAGE_FILE}"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user