From 394bfd59056a6a9db5f0d5a42abca09da7be8135 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 4 Mar 2017 14:34:53 +0000 Subject: [PATCH] Added if statement for webdir allowing the user to change it Also added forgotten dirs for gmod --- lgsm/functions/command_fastdl.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_fastdl.sh b/lgsm/functions/command_fastdl.sh index 3b695cf0e..0c4766704 100644 --- a/lgsm/functions/command_fastdl.sh +++ b/lgsm/functions/command_fastdl.sh @@ -12,7 +12,9 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" check.sh # Directories -webdir="${rootdir}/public_html" +if [ -z "${webdir}" ]; then + webdir="${lgsmdir}/public_html" +fi fastdldir="${webdir}/fastdl" addonsdir="${systemdir}/addons" # Server lua autorun dir, used to autorun lua on client connect to the server @@ -238,7 +240,7 @@ fn_fastdl_source(){ fn_script_log_info "Analysing required files" fi - local directorys_array=( "maps" "materials" "particles" "sounds" ) + local directorys_array=( "maps" "materials" "models" "particles" "sounds" "resources" ) for directory in "${directorys_array[@]}" do if [ -d "${systemdir}/${directory}" ]; then