Fix for cache copy

This commit is contained in:
Marwolf
2018-08-27 22:57:01 -04:00
parent b0fcd8cc8e
commit 08a159c634

View File

@@ -45,7 +45,7 @@ yes | sudo cp -rf "Game/Launcher/dist/Open_RSC_Launcher.jar" "Website/downloads/
# Cache # Cache
clear clear
echo "Preparing the cache." 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 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 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 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