ninedocker/services/30-minio/misc/nine.sh

33 lines
816 B
Bash
Raw Normal View History

2024-07-24 16:11:40 +02:00
#!/bin/bash
function upminio {
if [[ $MINIO_ACTIVATE == 1 && $MINIO_LOCAL == 1 ]]
then
Title "MINIO"
EchoVert "CONTAINER"
upservice $MINIO_SERVICE_NAME
Echo
fi
}
function destroyminio(){
if [[ $MINIO_LOCAL == 1 ]]
then
Title "DESTROY $MINIO_SERVICE_NAME"
stop $MINIO_SERVICE_NAME 1
docker-compose rm -s -v -f "$MINIO_SERVICE_NAME"
2024-07-26 22:34:20 +02:00
if [[ -z $1 ]]; then
Question_ouinon "Souhaitez-vous supprimer les fichiers stockés dans $MINIO_SERVICE_NAME ?";
response=$?
fi
if [[ "$response" == 0 || ! -z $1 ]]
2024-07-24 16:11:40 +02:00
then
2024-07-26 22:34:20 +02:00
EchoRouge "Suppression des fichiers stockés sur $MINIO_SERVICE_NAME"
sudo rm -rf ./services/30-minio/volume/data
2024-07-24 16:11:40 +02:00
fi
echo ""
fi
}