Auto exit if general install fails
This commit is contained in:
parent
57cea46d5a
commit
a5f4ee1bfb
@ -13,7 +13,7 @@ SDTD_BIN_DIR="${SDTD_USER_HOME}/.bin"
|
|||||||
git clone --recurse-submodules https://gitlab.orion-technologies.io/game-servers/7-days-to-die.git "${GIT_DIR}"
|
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
|
# Run general installation from the general submodule
|
||||||
sudo /bin/bash "${GENERAL_MODULE_PATH}/install.bash" "${GENERAL_MODULE_PATH}"
|
sudo /bin/bash "${GENERAL_MODULE_PATH}/install.bash" "${GENERAL_MODULE_PATH}" || exit
|
||||||
|
|
||||||
# Create the user
|
# Create the user
|
||||||
if [[ ! -d "${SDTD_USER_HOME}" ]]; then
|
if [[ ! -d "${SDTD_USER_HOME}" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user