wok-current diff boinc/receipt @ rev 19726
testdisk: simplify some initializations
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 16 18:55:42 2017 +0100 (2017-02-16) |
parents | affba9aecc73 |
children | 8e17dd3d81ee |
line diff
1.1 --- a/boinc/receipt Mon Oct 26 02:54:52 2015 +0200 1.2 +++ b/boinc/receipt Thu Feb 16 18:55:42 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"