diff --git a/tests/p_rsync/0-install-rsync.sh b/tests/p_rsync/0-install-rsync.sh index 50637cf..c90f725 100755 --- a/tests/p_rsync/0-install-rsync.sh +++ b/tests/p_rsync/0-install-rsync.sh @@ -2,10 +2,15 @@ # Author: Christoph Galuschka t_Log "Running $0 - installing rsync and xinetd." -t_InstallPackage xinetd rsync + +if [ "$centos_ver" = "8" ] ; then + t_InstallPackage xinetd rsync rsync-daemon +else + t_InstallPackage xinetd rsync +fi # Restart in case previous tests allready installed xinetd -if [ "$centos_ver" = "7" ] ; then +if [ "$centos_ver" = "7" ] || [ "$centos_ver" = "8" ]; then systemctl start rsyncd.service else # enable rsync in /etc/xinet.d/rsync diff --git a/tests/p_rsync/10-rsync-test.sh b/tests/p_rsync/10-rsync-test.sh index 7756168..1fd8436 100755 --- a/tests/p_rsync/10-rsync-test.sh +++ b/tests/p_rsync/10-rsync-test.sh @@ -29,7 +29,7 @@ hosts allow = 127.0.0.1 include = $FILE EOF -if [ "$centos_ver" = "7" ] ; then +if [ "$centos_ver" = "7" ] || [ "$centos_ver" = "8" ]; then systemctl start rsyncd.service else t_ServiceControl xinetd restart