Blame tests/p_rsync/0-install-rsync.sh

Christoph Galuschka dc5f9b
#!/bin/sh
Christoph Galuschka dc5f9b
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka dc5f9b
Christoph Galuschka dc5f9b
t_Log "Running $0 - installing rsync and xinetd."
5c7a59
39f042
if [ "$centos_ver" -ge 8 ]; then
f49232
  t_InstallPackage rsync rsync-daemon
5c7a59
else
5c7a59
  t_InstallPackage xinetd rsync
5c7a59
fi
Christoph Galuschka dc5f9b
Christoph Galuschka dc5f9b
# Restart in case previous tests allready installed xinetd
39f042
if [ "$centos_ver" -ge 7 ]; then
260e24
 systemctl start rsyncd.service
260e24
else
260e24
 # enable rsync in /etc/xinet.d/rsync
260e24
 sed -i 's/\(disable\s*=\ \)yes/\1no/' /etc/xinetd.d/rsync
260e24
 t_ServiceControl xinetd restart
260e24
fi