Add steamapps troubleshooting and autocreation script

This commit is contained in:
tnielsen2
2023-07-11 11:13:30 -04:00
parent 3be80a920e
commit 932e15314a
5 changed files with 59 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
echo "**** Configure Steam /mnt/games steamapps folder ****"
# Upon first execution of this container, /opt/scripts/install_steam.sh will create a library location named "Mounted
# Games into the /mnt/games/GameLibrary/SteamLibrary location, but not create the required steamapps folder"
# Check /mnt/games to see if it is configured as a Steam Library, and if it is, make sure the steamapps folder exists
MNT_LIBRARY_PATH="/mnt/games/GameLibrary/SteamLibrary"
if [ -f "$MNT_LIBRARY_PATH/libraryfolder.vdf" ] && [ ! -d "$MNT_LIBRARY_PATH/steamapps" ]; then
mkdir -pm 777 "$MNT_LIBRARY_PATH/steamapps"
fi