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."
Christoph Galuschka dc5f9b
t_InstallPackage xinetd rsync
Christoph Galuschka dc5f9b
Christoph Galuschka dc5f9b
# Restart in case previous tests allready installed xinetd
260e24
if [ "$centos_ver" = "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