From 215b68db7e76af153d1b789b7d6d138c932e7062 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Sun, 9 Oct 2011 18:58:44 -0400 Subject: fix updates.tar function in uncloud-init LP: #871297 --- tools/uncloud-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/uncloud-init') diff --git a/tools/uncloud-init b/tools/uncloud-init index 0e2a03df..2574d482 100755 --- a/tools/uncloud-init +++ b/tools/uncloud-init @@ -58,7 +58,7 @@ updateFrom() { rsync -av "${mp}/updates/" "/" || { log FAIL "failed rsync updates/ /"; return 1; } fi - if [ -d "${mp}/updates.tar" ]; then + if [ -f "${mp}/updates.tar" ]; then tar -C / -xvf "${mp}/updates.tar" || { log FAIL "failed tar -C / -xvf ${mp}/updates.tar"; return 1; } fi -- cgit v1.2.3