mirror of
https://github.com/open-webui/open-webui
synced 2024-11-21 23:57:51 +00:00
Chose between "docker-compose" and "docker compose" in confirm_remove.sh
This commit is contained in:
parent
e1e66f708f
commit
4570f6fb0e
@ -2,7 +2,12 @@
|
|||||||
echo "Warning: This will remove all containers and volumes, including persistent data. Do you want to continue? [Y/N]"
|
echo "Warning: This will remove all containers and volumes, including persistent data. Do you want to continue? [Y/N]"
|
||||||
read ans
|
read ans
|
||||||
if [ "$ans" == "Y" ] || [ "$ans" == "y" ]; then
|
if [ "$ans" == "Y" ] || [ "$ans" == "y" ]; then
|
||||||
|
command docker-compose 2>/dev/null
|
||||||
|
if [ "$?" == "0" ]; then
|
||||||
docker-compose down -v
|
docker-compose down -v
|
||||||
|
else
|
||||||
|
docker compose down -v
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Operation cancelled."
|
echo "Operation cancelled."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user