init commit

This commit is contained in:
root
2022-05-14 23:44:31 -05:00
parent f44fff42da
commit 78a175ddf2
5 changed files with 110 additions and 0 deletions

22
cleanup.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -e # Error out immediately on failed line
set +x # Don't print commands as they are run
echo "Cleaning up old installation (if any, exluding world and property files)..."
# The aim is to delete anything that doesn't need to be persistent between upgrades
echo "Deleting mods..." # Mods may change between versions
rm -rf ./mods
echo "Deleting forge jars..." # The version of Forge may change
rm -f forge-*
echo "Deleting Minecraft jars..." # The version of Minecraft may change
rm -f minecraft_server*
echo "Deleting libraries..." # Unsure if libraries might change
rm -rf ./libraries
echo "Deleting kubejs..." # Not sure what this folder is, but I don't think anything persistent is stored in it
rm -rf ./kubejs
echo "Deleting packmenu..." # Not sure what this folder is, but I don't think anything persistent is stored in it
rm -rf ./packmenu
echo "Deleting old installers..." # These shouldn't conflict, but I'm deleting them in-case they ever have a hotfix release with the same name
rm -f serverinstall*
echo "Cleanup Complete "
echo "=========================="