1
0
Fork 0
chrony/debian/tests/fragmented-configuration
Daniel Baumann 79ad1c5afd
Adding debian version 4.6.1-3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 09:10:31 +02:00

17 lines
537 B
Bash

#!/bin/sh
# Make sure that fragmented configuration works as expected.
set -e
. debian/tests/helper-functions
printf 'Setting "authselectmode prefer" as authentication policy: '
echo "authselectmode prefer" > /etc/chrony/conf.d/authentication-policy.conf && __test_ok || __test_fail
printf "Restart chronyd: "
systemctl --quiet restart chrony.service && __test_ok || __test_fail
printf "Checking that chronyd uses the defined authentication policy: "
chronyd -p | grep -q "authselectmode prefer" && __test_ok || __test_fail
exit 0