ninedocker/services/90-phpldapadmin/misc/nine.sh

25 lines
510 B
Bash
Raw Normal View History

2024-07-24 16:11:40 +02:00
#!/bin/bash
function upphpldapadmin {
if [[ $PHPLDAPADMIN_ACTIVATE == 1 && $PHPLDAPADMIN_LOCAL == 1 ]]
then
Title "PHPLDAPADMIN"
EchoVert "CONTAINER"
upservice $PHPLDAPADMIN_SERVICE_NAME
Echo
fi
}
function destroyphpldapadmin(){
if [[ $PHPLDAPADMIN_LOCAL == 1 ]]
then
Title "DESTROY $PHPLDAPADMIN_SERVICE_NAME"
stop $PHPLDAPADMIN_SERVICE_NAME 1
docker-compose rm -s -v -f "$PHPLDAPADMIN_SERVICE_NAME"
echo ""
fi
}