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
# enable rsync in /etc/xinet.d/rsync
Christoph Galuschka dc5f9b
sed -i 's/\(disable\s*=\ \)yes/\1no/' /etc/xinetd.d/rsync
Christoph Galuschka dc5f9b
Christoph Galuschka dc5f9b
# Restart in case previous tests allready installed xinetd
Christoph Galuschka dc5f9b
t_ServiceControl xinetd restart