wok diff boinc/receipt @ rev 18383

linux64-aufs: add 3.2.71 patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 18 09:16:57 2015 +0200 (2015-09-18)
parents fd22b033a84a
children affba9aecc73
line diff
     1.1 --- a/boinc/receipt	Sun Dec 08 08:52:14 2013 +0000
     1.2 +++ b/boinc/receipt	Fri Sep 18 09:16:57 2015 +0200
     1.3 @@ -51,11 +51,11 @@
     1.4  post_install()
     1.5  {
     1.6  	# Check if boinc user already exists
     1.7 -	if [ -n "`grep ^${BOINCUSER}: /etc/passwd`" ] ; then                       
     1.8 -		adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
     1.9 +	if [ -n "`grep ^${BOINCUSER}: $1/etc/passwd`" ] ; then                       
    1.10 +		chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
    1.11  	else
    1.12  		# In case boinc was previously installed:
    1.13 -		chown -R boinc /var/lib/boinc
    1.14 +		chroot "$1/" chown -R boinc /var/lib/boinc
    1.15          fi  
    1.16                                          
    1.17  	echo -n "Start the boinc client with \"# /etc/init.d/boinc-client start\""
    1.18 @@ -67,8 +67,8 @@
    1.19  	echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
    1.20  	read -t 30 answer
    1.21  	if [ "$answer" == "yes" ]; then
    1.22 -		deluser boinc
    1.23 -		rm -r /var/lib/boinc
    1.24 +		chroot "$1/" deluser boinc
    1.25 +		rm -r $1/var/lib/boinc
    1.26  	else
    1.27  		echo ""
    1.28  		echo "Leaving user boinc and /var/lib/boinc"