File debian.prerm of Package egroupware-mail

#! /bin/sh

set -e

# check if docker compose is available (Ubuntu 24.04 stalls on docker-compose!)
COMPOSE="docker compose"
docker help compose >/dev/null || {
	COMPOSE="docker-compose"
}

if [ "$1" = remove ]; then
	cd /etc/egroupware-mail
	$COMPOSE stop
	$COMPOSE rm -f
fi


if [ "$1" = purge ]; then
	rm -rf /var/lib/egroupware-mail
	rm -rf /etc/egroupware-mail
fi


#DEBHELPER#
openSUSE Build Service is sponsored by