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.
20 lines
498 B
20 lines
498 B
12 months ago
|
#!/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
|