summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-10-09 18:58:44 -0400
committerScott Moser <smoser@ubuntu.com>2011-10-09 18:58:44 -0400
commit215b68db7e76af153d1b789b7d6d138c932e7062 (patch)
tree3ab394e6e8ac28940f7422610dcc7a5061bf6c1d
parent3468479bca55c3c62a19ab428119153ce32caf84 (diff)
downloadvyos-cloud-init-215b68db7e76af153d1b789b7d6d138c932e7062.tar.gz
vyos-cloud-init-215b68db7e76af153d1b789b7d6d138c932e7062.zip
fix updates.tar function in uncloud-init
LP: #871297
-rwxr-xr-xtools/uncloud-init2
1 files changed, 1 insertions, 1 deletions
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