From 9d9a56c3ce6a272e2ceedba2b23f375d28ddb45a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 31 Mar 2017 21:50:08 -0600 Subject: [PATCH] Update source-master.sh --- freebsd/resources/switch/source-master.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/freebsd/resources/switch/source-master.sh b/freebsd/resources/switch/source-master.sh index 26a8cdd..133abcc 100755 --- a/freebsd/resources/switch/source-master.sh +++ b/freebsd/resources/switch/source-master.sh @@ -1,5 +1,11 @@ #!/bin/sh +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes +. ./config.sh + #send a message echo "Installing the FreeSWITCH source" @@ -43,9 +49,6 @@ gmake uhd-sounds-install uhd-sounds-install mkdir -p /usr/local/freeswitch/sounds/music/default mv /usr/local/freeswitch/sounds/music/*000 /usr/local/freeswitch/sounds/music/default -#move to script directory so all relative paths work -cd "$(dirname "$0")" - #configure system service ln -s /usr/local/freeswitch/bin/fs_cli /usr/bin/fs_cli cp switch/rc.d.freeswitch /usr/local/etc/rc.d/freeswitch