diff --git a/seqs/friendica.sh b/seqs/friendica.sh index 03766f5..ece4183 100755 --- a/seqs/friendica.sh +++ b/seqs/friendica.sh @@ -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" }