ninedocker/services/50-nineboard/misc/nine.sh

35 lines
943 B
Bash
Raw Normal View History

2024-07-26 22:34:20 +02:00
#!/bin/bash
function upnineboard {
if [[ $NINEBOARD_ACTIVATE == 1 && $NINEBOARD_LOCAL == 1 ]]
then
Title ${NINEBOARD_SERVICE_NAME^^}
EchoVert "CONTAINER"
upservice ${NINEBOARD_SERVICE_NAME}
Echo
fi
}
function destroynineboard {
if [[ $NINEBOARD_LOCAL == 1 ]]
then
Title "DESTROY ${NINEBOARD_SERVICE_NAME}"
stop ${NINEBOARD_SERVICE_NAME} 1
docker-compose rm -s -v -f "${NINEBOARD_SERVICE_NAME}"
if [[ -z $1 ]]; then
Question_ouinon "Souhaitez-vous purger $NINEBOARD_SERVICE_NAME ?";
response=$?
fi
if [[ "$response" == 0 || ! -z $1 ]]
then
EchoRouge "Purge = $NINEBOARD_SERVICE_NAME"
2024-07-27 11:01:26 +02:00
docker-compose exec $MARIADB_SERVICE_NAME /nine/delete.sh $NINEBOARD_SERVICE_NAME
2024-07-26 22:34:20 +02:00
rm -rf services/50-nineboard/volume/data
fi
echo ""
fi
}