From 6bfe9350bb1f33509a1916b6b6f07f168d6541fb Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 6 Aug 2014 06:31:47 +0000 Subject: [PATCH] Change the order of the code so that domain_name is preserved for multi-tenant in additional cases. --- resources/install/scripts/recordings.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/install/scripts/recordings.lua b/resources/install/scripts/recordings.lua index 971827cb83..aaa9c6de7a 100644 --- a/resources/install/scripts/recordings.lua +++ b/resources/install/scripts/recordings.lua @@ -142,11 +142,6 @@ if ( session:ready() ) then --set the base recordings dir base_recordings_dir = recordings_dir; - --get the recordings from the config.lua and append the domain_name if the system is multi-tenant - if (domain_count > 1) then - recordings_dir = recordings_dir .. "/" .. domain_name; - end - --use the recording_dir when the variable is set if (session:getVariable("recordings_dir")) then if (base_recordings_dir ~= session:getVariable("recordings_dir")) then @@ -154,6 +149,10 @@ if ( session:ready() ) then end end + --get the recordings from the config.lua and append the domain_name if the system is multi-tenant + if (domain_count > 1) then + recordings_dir = recordings_dir .. "/" .. domain_name; + end --set the sounds path for the language, dialect and voice default_language = session:getVariable("default_language"); default_dialect = session:getVariable("default_dialect");