ninedocker/services/90-phpldapadmin/misc/nine.sh
2024-07-24 14:11:40 +00:00

25 lines
510 B
Bash

#!/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
}