fix updates.tar function in uncloud-init

This commit is contained in:
Scott Moser 2011-10-09 18:58:44 -04:00
parent bddf901bf2
commit a129f2cc5c
1 changed files with 1 additions and 1 deletions

View File

@ -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