fix updates.tar function in uncloud-init
This commit is contained in:
@@ -58,7 +58,7 @@ updateFrom() {
|
|||||||
rsync -av "${mp}/updates/" "/" ||
|
rsync -av "${mp}/updates/" "/" ||
|
||||||
{ log FAIL "failed rsync updates/ /"; return 1; }
|
{ log FAIL "failed rsync updates/ /"; return 1; }
|
||||||
fi
|
fi
|
||||||
if [ -d "${mp}/updates.tar" ]; then
|
if [ -f "${mp}/updates.tar" ]; then
|
||||||
tar -C / -xvf "${mp}/updates.tar" ||
|
tar -C / -xvf "${mp}/updates.tar" ||
|
||||||
{ log FAIL "failed tar -C / -xvf ${mp}/updates.tar"; return 1; }
|
{ log FAIL "failed tar -C / -xvf ${mp}/updates.tar"; return 1; }
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user