wok diff squid/receipt @ rev 19102
firefox-official-*: provides browser-html5
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 04 10:53:21 2016 +0200 (2016-05-04) |
parents | 451ec7e0b47b |
children | a12efd5783ec |
line diff
1.1 --- a/squid/receipt Tue Jan 07 21:41:47 2014 +0100 1.2 +++ b/squid/receipt Wed May 04 10:53:21 2016 +0200 1.3 @@ -100,23 +100,22 @@ 1.4 # Pre and post install commands for Tazpkg. 1.5 post_install() 1.6 { 1.7 - local root 1.8 local user 1.9 local group 1.10 1.11 user=squid 1.12 group=squid 1.13 1.14 - if ! grep -q $user $1/etc/passwd; then 1.15 + if ! grep -q $user "$1/etc/passwd"; then 1.16 echo -n "Adding user/group $user..." 1.17 - chroot $1/ addgroup -S $group 1.18 - chroot $1/ adduser -S -D -H -G $group $user 1.19 + chroot "$1/" addgroup -S $group 1.20 + chroot "$1/" adduser -S -D -H -G $group $user 1.21 status 1.22 fi 1.23 1.24 1.25 # Set perms for files and directories 1.26 - chroot $1/ chown -R ${user}.${group} /var/log/squid \ 1.27 + chroot "$1/" chown -R ${user}.${group} /var/log/squid \ 1.28 /var/cache/squid 1.29 1.30 cat <<EOF