From c05fb67ddc7f87f507d04d6b855cb6e0f67eb59c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 22 Feb 2018 10:12:45 -0700 Subject: [PATCH] Update index.lua --- resources/install/scripts/app/provision/index.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/app/provision/index.lua b/resources/install/scripts/app/provision/index.lua index d516d89783..7f504ed491 100644 --- a/resources/install/scripts/app/provision/index.lua +++ b/resources/install/scripts/app/provision/index.lua @@ -55,8 +55,12 @@ --get the domain_uuid domain_uuid = session:getVariable("domain_uuid"); ---get the action +--get the variables action = session:getVariable("action"); + reboot = session:getVariable("reboot"); + +--set defaults + if (not reboot) then reboot = 'true'; end --set the sounds path for the language, dialect and voice default_language = session:getVariable("default_language"); @@ -232,7 +236,7 @@ event:addHeader('host', domain); event:addHeader('content-type', 'application/simple-message-summary'); --check sync - event:addHeader('event-string', 'check-sync;reboot=true'); + event:addHeader('event-string', 'check-sync;reboot='..reboot); --send the event event:fire(); end