gameservergame-servergame-servershacktoberfestdedicated-game-serversgamelinuxgsmserverbashgaminglinuxmultiplayer-game-servershell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
751 B
24 lines
751 B
#!/bin/bash
|
|
# LinuxGSM check_system_dir.sh module
|
|
# Author: Daniel Gibbs
|
|
# Contributors: https://linuxgsm.com/contrib
|
|
# Website: https://linuxgsm.com
|
|
# Description: Checks if systemdir/serverfiles is accessible.
|
|
|
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
|
if [ ! -d "${serverfiles}" ]; then
|
|
fn_print_fail_nl "Cannot access ${serverfiles}: No such directory"
|
|
if [ -d "${lgsmlogdir}" ]; then
|
|
fn_script_log_fail "Cannot access ${serverfiles}: No such directory."
|
|
fi
|
|
core_exit.sh
|
|
fi
|
|
|
|
if [ ! -d "${systemdir}" ] && [ -z "${CI}" ]; then
|
|
fn_print_fail_nl "Cannot access ${systemdir}: No such directory"
|
|
if [ -d "${lgsmlogdir}" ]; then
|
|
fn_script_log_fail "Cannot access ${systemdir}: No such directory."
|
|
fi
|
|
core_exit.sh
|
|
fi
|
|
|