wok-current rev 18557
slitaz-base-files: hide /tmp/etc.bak error message
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 08 10:11:39 2015 +0100 (2015-11-08) |
parents | f3ec70c41467 |
children | fd43b38b883b |
files | slitaz-base-files/receipt |
line diff
1.1 --- a/slitaz-base-files/receipt Sun Nov 08 01:42:35 2015 +0200 1.2 +++ b/slitaz-base-files/receipt Sun Nov 08 10:11:39 2015 +0100 1.3 @@ -110,8 +110,9 @@ 1.4 1.5 post_install() 1.6 { 1.7 - cp -a "$1/tmp/etc.bak"/* "$1/etc" 2>/dev/null 1.8 - rm -r "$1/tmp/etc.bak" 1.9 + if cp -a "$1/tmp/etc.bak"/* "$1/etc"; then 1.10 + rm -r "$1/tmp/etc.bak" 1.11 + fi 2>/dev/null 1.12 1.13 [ -x "$1/usr/bin/sudo.orig" ] && mv -f "$1/usr/bin/sudo.orig" "$1/usr/bin/sudo" 1.14