From 08a159c634aad040762f68dbc5324b2808ea4d2d Mon Sep 17 00:00:00 2001 From: Marwolf Date: Mon, 27 Aug 2018 22:57:01 -0400 Subject: [PATCH] Fix for cache copy --- v2_Linux_Fetch_Updates_Production.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2_Linux_Fetch_Updates_Production.sh b/v2_Linux_Fetch_Updates_Production.sh index 969621e..ccee229 100644 --- a/v2_Linux_Fetch_Updates_Production.sh +++ b/v2_Linux_Fetch_Updates_Production.sh @@ -45,7 +45,7 @@ yes | sudo cp -rf "Game/Launcher/dist/Open_RSC_Launcher.jar" "Website/downloads/ # Cache clear echo "Preparing the cache." -yes | sudo cp -rf "Game/client/Cache/" "Website/downloads/cache" | tee -a updater.log &>/dev/null +yes | sudo cp -a -rf "Game/client/Cache/." "Website/downloads/cache/" | tee -a updater.log &>/dev/null sudo rm Website/downloads/cache/MD5CHECKSUM | tee -a updater.log &>/dev/null sudo touch Website/downloads/cache/MD5CHECKSUM && sudo chmod 777 Website/downloads/cache/MD5CHECKSUM | tee updater.log | &>/dev/null md5sum Website/downloads/cache/* | sed 's/Website\/downloads\/cache\///g' | grep ^[a-zA-Z0-9]* | awk '{print $2"="$1}' | tee Website/downloads/cache/MD5CHECKSUM | tee -a updater.log &>/dev/null