wok diff boinc/receipt @ rev 20156

Up tazpanel (622)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 23 13:24:48 2017 +0100 (2017-12-23)
parents affba9aecc73
children 8e17dd3d81ee
line diff
     1.1 --- a/boinc/receipt	Mon Oct 26 02:54:52 2015 +0200
     1.2 +++ b/boinc/receipt	Sat Dec 23 13:24:48 2017 +0100
     1.3 @@ -51,7 +51,7 @@
     1.4  {
     1.5  	echo
     1.6  	# Check if boinc user already exists
     1.7 -	if grep -q ^${BOINCUSER}: $1/etc/passwd; then
     1.8 +	if grep -q ^${BOINCUSER}: "$1/etc/passwd"; then
     1.9  		chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
    1.10  	else
    1.11  		# In case boinc was previously installed:
    1.12 @@ -68,7 +68,7 @@
    1.13  	read -t 30 answer
    1.14  	if [ "$answer" == "yes" ]; then
    1.15  		chroot "$1/" deluser boinc
    1.16 -		rm -r $1/var/lib/boinc
    1.17 +		rm -r "$1/var/lib/boinc"
    1.18  	else
    1.19  		echo ""
    1.20  		echo "Leaving user boinc and /var/lib/boinc"