Browse Source

feat(armarserver): Add fix for create profile directory

pull/3871/head
Marcin Jakubowski 3 years ago
committed by Christian
parent
commit
7b6eb38d71
  1. 3
      lgsm/config-default/config-lgsm/armarserver/_default.cfg
  2. 5
      lgsm/functions/core_functions.sh
  3. 2
      lgsm/functions/fix.sh
  4. 16
      lgsm/functions/fix_armar.sh

3
lgsm/config-default/config-lgsm/armarserver/_default.cfg

@ -14,9 +14,10 @@ queryport="17777"
# Profile Name
serverprofile="server"
serverprofilefullpath="${serverfiles}/profiles/${serverprofile}"
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-config ${servercfgfullpath} -profile ${serverfiles}/profiles/${serverprofile}"
startparameters="-config ${servercfgfullpath} -profile ${serverprofilefullpath}"
#### LinuxGSM Settings ####

5
lgsm/functions/core_functions.sh

@ -341,6 +341,11 @@ functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
fix_armar.sh(){
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
fix_bo.sh(){
functionfile="${FUNCNAME[0]}"
fn_fetch_function

2
lgsm/functions/fix.sh

@ -39,6 +39,8 @@ if [ "${commandname}" != "INSTALL" ]&&[ -z "${fixbypass}" ]; then
if [ "${shortname}" == "arma3" ]; then
fix_arma3.sh
elif [ "${shortname}" == "armar" ]; then
fix_armar.sh
elif [ "${shortname}" == "ark" ]; then
fix_ark.sh
elif [ "${shortname}" == "bo" ]; then

16
lgsm/functions/fix_armar.sh

@ -0,0 +1,16 @@
#!/bin/bash
# LinuxGSM fix_armar.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves an issue with Arma Reforger.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Fixes: Profile directory doesn't exist.
if [ ! -d "${serverprofilefullpath}" ]; then
fixname="Profile directory doesn't exist"
fn_fix_msg_start
mkdir -p "${serverprofilefullpath}"
fn_fix_msg_end
fi
Loading…
Cancel
Save