You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_rsync/0-install-rsync.sh

20 lines
498 B

#!/bin/sh
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
t_Log "Running $0 - installing rsync and xinetd."
if [ "$centos_ver" -ge 8 ]; then
t_InstallPackage rsync rsync-daemon
else
t_InstallPackage xinetd rsync
fi
# Restart in case previous tests allready installed xinetd
if [ "$centos_ver" -ge 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