wok-next diff rsync/receipt @ rev 18852

Restore "apulse" && Workaround in "nvidia*" for "find-depends"
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Jan 25 12:18:01 2016 +0100 (2016-01-25)
parents d211311bd968
children d919176411a4
line diff
     1.1 --- a/rsync/receipt	Thu Sep 03 09:59:14 2015 +0200
     1.2 +++ b/rsync/receipt	Mon Jan 25 12:18:01 2016 +0100
     1.3 @@ -47,12 +47,12 @@
     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 +	grep -q rsync "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
     1.9  #rsync	stream	tcp	nowait	root	rsync	rsync	-daemon
    1.10  EOT
    1.11  }
    1.12  
    1.13  post_remove()
    1.14  {
    1.15 -	grep -q rsync $1/etc/inetd.conf && sed -i '/rsync/d' $1/etc/inetd.conf
    1.16 +	grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
    1.17  }