General installer

This commit is contained in:
Price Hiller 2021-12-25 23:39:54 -06:00
parent 0254d7678c
commit 20a8c20221

12
installer.bash Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
BASE_DIR="${1}"
SCRIPT_DIR="${BASE_DIR}/Sripts/"
[[ -z "${BASE_DIR}" ]] && echo "No base directory provided in arg 1" && exit 1
# Ensure we are root
sudo su || exit 1
sudo /bin/bash "${SCRIPT_DIR}/install-requirements.bash"
sduo /bin/bash "${SCRIPT_DIR}/install-steamcmd.bash"