diff --git a/freebsd/resources/switch/source-release.sh b/freebsd/resources/switch/source-release.sh index f37d1d0..7fcfb44 100755 --- a/freebsd/resources/switch/source-release.sh +++ b/freebsd/resources/switch/source-release.sh @@ -51,12 +51,9 @@ 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 -#set the original working directory -cd $cwd - #configure system service ln -s /usr/local/freeswitch/bin/fs_cli /usr/bin/fs_cli -cp "$(dirname $0)/rc.d.freeswitch" /usr/local/etc/rc.d/freeswitch +cp "$(cwd)/rc.d.freeswitch" /usr/local/etc/rc.d/freeswitch chmod u-w,ugo+x /usr/local/etc/rc.d/freeswitch #enable the service