ninedocker/services/10-nineapache/misc/nine.sh

23 lines
569 B
Bash

#!/bin/bash
function upnineapache {
if [[ $NINEAPACHE_ACTIVATE == 1 && $NINEAPACHE_LOCAL == 1 ]]
then
Title ${NINEAPACHE_SERVICE_NAME^^}
EchoVert "CONTAINER"
upservice ${NINEAPACHE_SERVICE_NAME}
Echo
fi
}
function destroynineapache {
if [[ $NINEAPACHE_LOCAL == 1 ]]
then
Title "DESTROY ${NINEAPACHE_SERVICE_NAME}"
stop ${NINEAPACHE_SERVICE_NAME} 1
docker-compose rm -s -v -f "${NINEAPACHE_SERVICE_NAME}"
rm -rf services/10-nineapache/volume/apache
echo ""
fi
}