Update download URLs and renamed moved backup folder to include date and time

This commit is contained in:
2020-09-21 14:23:25 +02:00
parent 7a83a5f8a1
commit 44eb276b1c

View File

@@ -100,8 +100,8 @@ step_22() {
# Download
local downUrl="https://github.com/friendica/friendica/releases/download/${latestVersion}/friendica-full-${latestVersion}.tar.gz"
local downUrlAddons="https://github.com/friendica/friendica-addons/archive/${latestVersion}.tar.gz"
local downUrl="https://files.friendi.ca/friendica-full-${latestVersion}.tar.gz"
local downUrlAddons="https://files.friendi.ca/friendica-addons-${latestVersion}.tar.gz"
local tempExtract="$tempDown/friendica-full-$latestVersion"
local tempExtractAddons="$tempDown/friendica-addons-$latestVersion"
@@ -128,7 +128,7 @@ step_22() {
fi
# Installation
local tempBu="${FR_LOC}_bu"
local tempBu="${FR_LOC}_bu_`date +%Y%m%d-%H%M%S`"
local tempAddons="${FR_LOC}/addon"
exe mv "$FR_LOC" "$tempBu"
@@ -142,7 +142,9 @@ step_22() {
# Configuration
echo " [I] Copying configuration"
exe cp -ar "$tempBu/config/local.config.php" "$FR_LOC/config/"
exe cp -ar "$tempBu/config/addon.config.php" "$FR_LOC/config/"
if [ -f "$tempBu/config/addon.config.php" ]; then
exe cp -ar "$tempBu/config/addon.config.php" "$FR_LOC/config/"
fi
echo " [I] Don't forget to \"clean\" if everything is working as expected"
}