#!/usr/share/ucs-test/runner bash
# shellcheck shell=bash
## desc: Check for the system role package state
## tags: [basic,apptest]
## exposure: safe

# shellcheck source=../../lib/base.sh
. "$TESTLIBPATH/base.sh" || exit 137

eval "$(ucr shell)"

set -e
case "$server_role" in
domaincontroller_master)
	requiresoftware univention-server-master ;;
domaincontroller_backup)
	requiresoftware univention-server-backup ;;
domaincontroller_slave)
	requiresoftware univention-server-slave ;;
memberserver)
	requiresoftware univention-server-member ;;
basesystem)
	requiresoftware univention-basesystem ;;
esac
exit 0

# vim: set ft=sh :
