#!/usr/bin/bash

set -e

PROGNAME=$(basename "$0")
debconf_BOOTSTRAPPED=0
AUTO_CONFIG=false

. /usr/share/grommunio-pkg-bits/scripts/setup-include.sh

# This case statements prevents execution if script is included
case "$PROGNAME" in
	setup-grommunio-dbconfig)
		check_if_root
		start_debconf -t -x 'grommunio-dbconfig' -y 'dbconfig-common' -z 'dbconfig-common' "$@"
	;;
	clean-dbconfig-db)
		check_if_root
		clean_dbconfig_db "$@"
	;;
esac

