Update download URLs and renamed moved backup folder to include date and time
This commit is contained in:
@@ -100,8 +100,8 @@ step_22() {
|
|||||||
|
|
||||||
# Download
|
# Download
|
||||||
|
|
||||||
local downUrl="https://github.com/friendica/friendica/releases/download/${latestVersion}/friendica-full-${latestVersion}.tar.gz"
|
local downUrl="https://files.friendi.ca/friendica-full-${latestVersion}.tar.gz"
|
||||||
local downUrlAddons="https://github.com/friendica/friendica-addons/archive/${latestVersion}.tar.gz"
|
local downUrlAddons="https://files.friendi.ca/friendica-addons-${latestVersion}.tar.gz"
|
||||||
local tempExtract="$tempDown/friendica-full-$latestVersion"
|
local tempExtract="$tempDown/friendica-full-$latestVersion"
|
||||||
local tempExtractAddons="$tempDown/friendica-addons-$latestVersion"
|
local tempExtractAddons="$tempDown/friendica-addons-$latestVersion"
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ step_22() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
local tempBu="${FR_LOC}_bu"
|
local tempBu="${FR_LOC}_bu_`date +%Y%m%d-%H%M%S`"
|
||||||
local tempAddons="${FR_LOC}/addon"
|
local tempAddons="${FR_LOC}/addon"
|
||||||
|
|
||||||
exe mv "$FR_LOC" "$tempBu"
|
exe mv "$FR_LOC" "$tempBu"
|
||||||
@@ -142,7 +142,9 @@ step_22() {
|
|||||||
# Configuration
|
# Configuration
|
||||||
echo " [I] Copying configuration"
|
echo " [I] Copying configuration"
|
||||||
exe cp -ar "$tempBu/config/local.config.php" "$FR_LOC/config/"
|
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"
|
echo " [I] Don't forget to \"clean\" if everything is working as expected"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user