Skip to content

Commit 215b68d

Browse files
committed
fix updates.tar function in uncloud-init
LP: #871297
1 parent 3468479 commit 215b68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/uncloud-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ updateFrom() {
5858
rsync -av "${mp}/updates/" "/" ||
5959
{ log FAIL "failed rsync updates/ /"; return 1; }
6060
fi
61-
if [ -d "${mp}/updates.tar" ]; then
61+
if [ -f "${mp}/updates.tar" ]; then
6262
tar -C / -xvf "${mp}/updates.tar" ||
6363
{ log FAIL "failed tar -C / -xvf ${mp}/updates.tar"; return 1; }
6464
fi

0 commit comments

Comments
 (0)