Browse Source

Added if statement for webdir allowing the user to change it

Also added forgotten dirs for gmod
pull/1331/head
Daniel Gibbs 8 years ago
parent
commit
394bfd5905
  1. 6
      lgsm/functions/command_fastdl.sh

6
lgsm/functions/command_fastdl.sh

@ -12,7 +12,9 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
# Directories # Directories
webdir="${rootdir}/public_html" if [ -z "${webdir}" ]; then
webdir="${lgsmdir}/public_html"
fi
fastdldir="${webdir}/fastdl" fastdldir="${webdir}/fastdl"
addonsdir="${systemdir}/addons" addonsdir="${systemdir}/addons"
# Server lua autorun dir, used to autorun lua on client connect to the server # 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" fn_script_log_info "Analysing required files"
fi fi
local directorys_array=( "maps" "materials" "particles" "sounds" ) local directorys_array=( "maps" "materials" "models" "particles" "sounds" "resources" )
for directory in "${directorys_array[@]}" for directory in "${directorys_array[@]}"
do do
if [ -d "${systemdir}/${directory}" ]; then if [ -d "${systemdir}/${directory}" ]; then

Loading…
Cancel
Save