From 20a8c202219639bf6ae89966deece65db7f30efe Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 25 Dec 2021 23:39:54 -0600 Subject: [PATCH] General installer --- installer.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 installer.bash diff --git a/installer.bash b/installer.bash new file mode 100644 index 0000000..7fcdbd4 --- /dev/null +++ b/installer.bash @@ -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"