bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

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
5c7a59
if [ "$centos_ver" = "8" ] ; then
5c7a59
  t_InstallPackage xinetd 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
5c7a59
if [ "$centos_ver" = "7" ] || [ "$centos_ver" = "8" ]; 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