From ee1fbffed507f845df869d40dc96aae08aebf4b5 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Jul 28 2019 19:26:28 +0000 Subject: Fix tftp-server tests in CentOS8 --- diff --git a/tests/p_tftp-server/0-install_tftp-server.sh b/tests/p_tftp-server/0-install_tftp-server.sh index 137d964..ccaa166 100755 --- a/tests/p_tftp-server/0-install_tftp-server.sh +++ b/tests/p_tftp-server/0-install_tftp-server.sh @@ -4,6 +4,24 @@ t_InstallPackage tftp-server xinetd tftp # Enable tftp +if [ "$centos_ver" -ge "8" ] ; then +cat <<__EOF__ >/etc/xinetd.d/tftp +service tftp +{ + socket_type = dgram + protocol = udp + wait = yes + user = root + server = /usr/sbin/in.tftpd + server_args = -s /var/lib/tftpboot + disable = no + per_source = 11 + cps = 100 2 + flags = IPv4 +} +__EOF__ +else sed -i 's/\(disable\s*=\ \)yes/\1no/' /etc/xinetd.d/tftp +fi t_ServiceControl xinetd restart