wok-current diff sane-backends/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 1ed620c5ee23 |
children | d2c4737a0c7a |
line diff
1.1 --- a/sane-backends/receipt Wed Jul 29 17:07:24 2015 +0200 1.2 +++ b/sane-backends/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -64,20 +64,17 @@ 1.4 1.5 post_install() 1.6 { 1.7 - local root 1.8 - root=$1 1.9 - 1.10 - tazpkg reconfigure udev --root=$root 1.11 + tazpkg reconfigure udev --root="$1" 1.12 1.13 # add group scanner 1.14 - if ! grep -q scanner $root/etc/group ; then 1.15 - chroot "$root/" addgroup -g 96 scanner 1.16 + if ! grep -q scanner "$1/etc/group" ; then 1.17 + chroot "$1/" addgroup -g 96 scanner 1.18 fi 1.19 1.20 echo " ADD yourself to group scanner to use sane: addgroup tux scanner" 1.21 1.22 - [ -e $root/var/www/tazpanel/tmp ] || 1.23 - ln -s /tmp $root/var/www/tazpanel/tmp 1.24 + [ -e "$1/var/www/tazpanel/tmp" ] || 1.25 + ln -s /tmp "$1/var/www/tazpanel/tmp" 1.26 } 1.27 1.28 post_remove()