Adapt upgrade step to addon archive content structure

(see https://fd.winklerfamilie.eu/display/f3ad7b1c-175f-f431-45dd-84c383787445)
This commit is contained in:
2021-01-08 13:35:46 +01:00
parent 4d925dbc4a
commit 6122b9d7ce

View File

@@ -117,16 +117,16 @@ step_22() {
fi
if [ ! -e "$tempExtractAddons" ] ; then
exe mkdir -p "$tempDown"
exe wget -O "$tempLocAddons" $downUrlAddons
endReturn -o $? "Download failed: $downUrlAddons"
exe cd "$tempDown"
exe tar -xf "$tempLocAddons"
exe mkdir -p "$tempExtractAddons"
exe tar -xC "${tempExtractAddons}" -f "$tempLocAddons"
endReturn -o $? "Extract failed: $tempLocAddons"
else
echo " [I] Found existing download: $tempExtractAddons"
fi
# Installation
local tempBu="${FR_LOC}_bu_`date +%Y%m%d-%H%M%S`"
local tempAddons="${FR_LOC}/addon"