diff --git a/tests/p_rsync/0-install-rsync.sh b/tests/p_rsync/0-install-rsync.sh index f0efada..50637cf 100755 --- a/tests/p_rsync/0-install-rsync.sh +++ b/tests/p_rsync/0-install-rsync.sh @@ -4,8 +4,11 @@ t_Log "Running $0 - installing rsync and xinetd." t_InstallPackage xinetd rsync -# enable rsync in /etc/xinet.d/rsync -sed -i 's/\(disable\s*=\ \)yes/\1no/' /etc/xinetd.d/rsync - # Restart in case previous tests allready installed xinetd -t_ServiceControl xinetd restart +if [ "$centos_ver" = "7" ] ; then + systemctl start rsyncd.service +else + # enable rsync in /etc/xinet.d/rsync + sed -i 's/\(disable\s*=\ \)yes/\1no/' /etc/xinetd.d/rsync + t_ServiceControl xinetd restart +fi diff --git a/tests/p_rsync/10-rsync-test.sh b/tests/p_rsync/10-rsync-test.sh index 41625d5..7756168 100755 --- a/tests/p_rsync/10-rsync-test.sh +++ b/tests/p_rsync/10-rsync-test.sh @@ -13,6 +13,7 @@ cat > $PATH2FILE/$FILE < /etc/rsyncd.conf <