asdf
This commit is contained in:
@@ -80,7 +80,7 @@ check() {
|
|||||||
|
|
||||||
init_server() {
|
init_server() {
|
||||||
mkdir -p "$SERVER_HOME" "$CACHE" "$MOD_CACHE" "$STOCK_SERVER_CACHE" "$LOCAL_DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME"
|
mkdir -p "$SERVER_HOME" "$CACHE" "$MOD_CACHE" "$STOCK_SERVER_CACHE" "$LOCAL_DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME"
|
||||||
:>"$SERVER_HOME/.modstring"
|
:>"$SERVER_HOME/modstring"
|
||||||
|
|
||||||
check || die "Failed check()"
|
check || die "Failed check()"
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ setup_environment() {
|
|||||||
die "Failed to copy DZSALModServer.exe"
|
die "Failed to copy DZSALModServer.exe"
|
||||||
}
|
}
|
||||||
|
|
||||||
# finds list of mods to load and stores them in .modstring file
|
# finds list of mods to load and stores them in modstring file
|
||||||
# to be used as parameters to the server
|
# to be used as parameters to the server
|
||||||
load_mods() {
|
load_mods() {
|
||||||
msg "Loading mods"
|
msg "Loading mods"
|
||||||
@@ -254,8 +254,7 @@ main() {
|
|||||||
# this must be here and not up top as we must load it from the SERVER.ENV
|
# this must be here and not up top as we must load it from the SERVER.ENV
|
||||||
export SERVER_HOME="$SERVERS/$SERVER_NAME"
|
export SERVER_HOME="$SERVERS/$SERVER_NAME"
|
||||||
|
|
||||||
# create directories in $SERVER_HOME
|
# create directories in $SERVER_HOME, blank the modstring
|
||||||
# blank the modstring
|
|
||||||
init_server
|
init_server
|
||||||
|
|
||||||
if [ -e ./serverDZ.cfg ] ; then
|
if [ -e ./serverDZ.cfg ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user