From 6122b9d7ce06586d37cfa39b6620702f09c31707 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Fri, 8 Jan 2021 13:35:46 +0100 Subject: [PATCH] Adapt upgrade step to addon archive content structure (see https://fd.winklerfamilie.eu/display/f3ad7b1c-175f-f431-45dd-84c383787445) --- seqs/friendica.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seqs/friendica.sh b/seqs/friendica.sh index ece4183..082a9a5 100755 --- a/seqs/friendica.sh +++ b/seqs/friendica.sh @@ -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"