Adapt upgrade step to addon archive content structure
(see https://fd.winklerfamilie.eu/display/f3ad7b1c-175f-f431-45dd-84c383787445)
This commit is contained in:
@@ -117,16 +117,16 @@ step_22() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e "$tempExtractAddons" ] ; then
|
if [ ! -e "$tempExtractAddons" ] ; then
|
||||||
exe mkdir -p "$tempDown"
|
|
||||||
exe wget -O "$tempLocAddons" $downUrlAddons
|
exe wget -O "$tempLocAddons" $downUrlAddons
|
||||||
endReturn -o $? "Download failed: $downUrlAddons"
|
endReturn -o $? "Download failed: $downUrlAddons"
|
||||||
exe cd "$tempDown"
|
exe cd "$tempDown"
|
||||||
exe tar -xf "$tempLocAddons"
|
exe mkdir -p "$tempExtractAddons"
|
||||||
|
exe tar -xC "${tempExtractAddons}" -f "$tempLocAddons"
|
||||||
endReturn -o $? "Extract failed: $tempLocAddons"
|
endReturn -o $? "Extract failed: $tempLocAddons"
|
||||||
else
|
else
|
||||||
echo " [I] Found existing download: $tempExtractAddons"
|
echo " [I] Found existing download: $tempExtractAddons"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
local tempBu="${FR_LOC}_bu_`date +%Y%m%d-%H%M%S`"
|
local tempBu="${FR_LOC}_bu_`date +%Y%m%d-%H%M%S`"
|
||||||
local tempAddons="${FR_LOC}/addon"
|
local tempAddons="${FR_LOC}/addon"
|
||||||
|
Reference in New Issue
Block a user