Browse Source

force servercfgfullpath update for sdtd

pull/2101/head
Josh 6 years ago
parent
commit
0d501c6e50
  1. 1
      lgsm/functions/core_dl.sh
  2. 10
      lgsm/functions/install_config.sh

1
lgsm/functions/core_dl.sh

@ -119,6 +119,7 @@ fn_fetch_file(){
chmodx="${4:-0}"
run="${5:-0}"
if [ -f /.dockerenv ]; then
# All required files should already exist locally
forcedl="0"
else
forcedl="${6:-0}"

10
lgsm/functions/install_config.sh

@ -37,8 +37,8 @@ fn_fetch_default_config(){
fn_default_config_remote(){
for config in "${array_configs[@]}"; do
# every config is copied
echo -e "copying ${config} config file 1."
fn_script_log_info "copying ${servercfg} config file 1."
echo -e "copying ${config} config file."
fn_script_log_info "copying ${servercfg} config file."
if [ -f /.dockerenv ]; then
# In Docker we regenerate this config everytime at startup.
# we always want to overwrite the existing file.
@ -63,6 +63,12 @@ fn_default_config_remote(){
# Copys local default config to server config location.
fn_default_config_local(){
echo -e "copying ${servercfgdefault} config file."
if [ -f /.dockerenv ]; then
# In Docker we regenerate this config everytime at startup.
# we always want to overwrite the existing file.
rm ${servercfgfullpath}
fi
cp -nv "${servercfgfullpathdefault}" "${servercfgfullpath}"
fn_sleep_time
}

Loading…
Cancel
Save