diff --git a/Scripts/general b/Scripts/general index 2cb41e0..26e410c 160000 --- a/Scripts/general +++ b/Scripts/general @@ -1 +1 @@ -Subproject commit 2cb41e0effcd92c7b6199dca96766a45cce86167 +Subproject commit 26e410c694ab876d697f74a5334dac2272e2f40e diff --git a/install.bash b/install.bash index 83ba38f..101a477 100755 --- a/install.bash +++ b/install.bash @@ -9,14 +9,11 @@ SDTD_USER_NAME="sdtd" SDTD_USER_HOME="/home/${SDTD_USER_NAME}/" SDTD_BIN_DIR="${SDTD_USER_HOME}/.bin" -# Change to the root user -sudo su - # Get the repo as this script SHOULD be a copy paste into a terminal, so we have to pull this down git clone --recurse-submodules https://gitlab.orion-technologies.io/game-servers/7-days-to-die.git "${GIT_DIR}" # Run general installation from the general submodule -/bin/bash "${GENERAL_MODULE_PATH}/install.bash" +sudo /bin/bash "${GENERAL_MODULE_PATH}/install.bash" "${GENERAL_MODULE_PATH}" # Create the user if [[ ! -d "${SDTD_USER_HOME}" ]]; then