wok-6.x rev 19767
rsync: may not require /etc/inetd.conf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 20 12:42:22 2017 +0100 (2017-02-20) |
parents | bf261b0db903 |
children | 0a60ce0bf59a |
files | rsync/receipt |
line diff
1.1 --- a/rsync/receipt Mon Feb 20 09:35:09 2017 +0100 1.2 +++ b/rsync/receipt Mon Feb 20 12:42:22 2017 +0100 1.3 @@ -47,7 +47,9 @@ 1.4 cp -a $stuff/usr $fs 1.5 chown root.root $fs/etc/init.d/* 1.6 chmod 0644 $fs/etc/rsyncd.conf 1.7 - grep -q rsync "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT 1.8 + [ -s "$1/etc/inetd.conf" ] && 1.9 + ! grep -qs rsync "$1/etc/inetd.conf" && 1.10 + cat >> "$1/etc/inetd.conf" <<EOT 1.11 #rsync stream tcp nowait root rsync rsync -daemon 1.12 EOT 1.13 }