|
@@ -6,6 +6,9 @@ cd "$(dirname "$0")"
|
|
#includes
|
|
#includes
|
|
. ../config.sh
|
|
. ../config.sh
|
|
|
|
|
|
|
|
+#install dependencies
|
|
|
|
+pkg install --yes tiff memcached
|
|
|
|
+
|
|
#set the current working directory
|
|
#set the current working directory
|
|
cwd=$(pwd)
|
|
cwd=$(pwd)
|
|
|
|
|
|
@@ -19,13 +22,16 @@ pkg install freeswitch
|
|
cd $cwd
|
|
cd $cwd
|
|
|
|
|
|
#configure system service
|
|
#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
|
|
|
|
-chmod u-w,ugo+x /usr/local/etc/rc.d/freeswitch
|
|
|
|
|
|
+#cp "$(dirname $0)/rc.d.freeswitch" /usr/local/etc/rc.d/freeswitch
|
|
|
|
+#chmod u-w,ugo+x /usr/local/etc/rc.d/freeswitch
|
|
|
|
|
|
-#enable the service
|
|
|
|
|
|
+#enable the services
|
|
|
|
+echo 'memcached_enable="YES"' >> /etc/rc.conf
|
|
echo 'freeswitch_enable="YES"' >> /etc/rc.conf
|
|
echo 'freeswitch_enable="YES"' >> /etc/rc.conf
|
|
-echo 'freeswitch_flags="-nc -nonat -u www -g www"' >> /etc/rc.conf
|
|
|
|
|
|
+echo 'freeswitch_flags="-nonat"' >> /etc/rc.conf
|
|
|
|
+echo 'freeswitch_user="www"' >> /etc/rc.conf
|
|
|
|
+echo 'freeswitch_group="www"' >> /etc/rc.conf
|
|
|
|
|
|
#start the service
|
|
#start the service
|
|
-service freeswitch restart
|
|
|
|
|
|
+service memcached start
|
|
|
|
+service freeswitch start
|