Explorar el Código

now correctly checks if gamelogdir is missing and needs installing

Daniel Gibbs hace 9 años
padre
commit
28b5d3ff5a
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      lgsm/functions/check_logs.sh

+ 3 - 2
lgsm/functions/check_logs.sh

@@ -20,7 +20,8 @@ if [ ! -d "${lgsmlogdir}" ]||[ ! -d "${consolelogdir}" ]&&[ "${gamename}" != "Te
 	fn_check_logs
 fi
 
-# Create gamelogdir if variable exist but dir does not exist
-if [ -n "${gamelogdir}" ]&&[ ! -d "${gamelogdir}" ]; then
+# Create gamelogdir
+# If variable exists gamelogdir exists and log/server does not
+if [ -n "${gamelogdir}" ]&&[ -d "${gamelogdir}" ]&&[ ! -d "${logdir}/server" ]; then
 	fn_check_logs
 fi