#!/usr/share/ucs-test/runner bash
# shellcheck shell=bash
## desc: Check connector/s4/listener/disabled
## packages:
## - univention-s4-connector
## tags:
##  - basic
## exposure: safe

# shellcheck source=../../lib/base.sh
. "$TESTLIBPATH/base.sh" || exit 137
. /usr/share/univention-lib/ucr.sh || exit 137

if ! is_ucr_false connector/s4/autostart; then
	if is_ucr_true connector/s4/listener/disabled; then
		fail_fast 110 "connector/s4/autostart is active but connector/s4/listener/disabled is active too"
	fi
fi

exit "$RETVAL"
