2016-08-23 03:21:33 +02:00
|
|
|
#!/bin/sh
|
2016-08-23 03:08:34 +02:00
|
|
|
|
|
|
|
|
#make sure the etc fusionpbx directory exists
|
2016-08-23 02:58:46 +02:00
|
|
|
mkdir -p /etc/fusionpbx
|
2016-08-23 03:08:34 +02:00
|
|
|
|
|
|
|
|
#remove init.d startup script
|
|
|
|
|
mv /etc/init.d/freeswitch /usr/src/init.d.freeswitch
|
|
|
|
|
update-rc.d -f freeswitch remove
|
|
|
|
|
|
|
|
|
|
#add the the freeswitch package
|
2016-08-23 02:58:46 +02:00
|
|
|
$(dirname $0)/package-release.sh
|
2016-08-23 03:08:34 +02:00
|
|
|
|
|
|
|
|
#install freeswitch systemd.d
|
2016-08-23 02:58:46 +02:00
|
|
|
$(dirname $0)/package-systemd.sh
|
2016-08-23 03:08:34 +02:00
|
|
|
|
2016-08-23 03:21:33 +02:00
|
|
|
#move source files to package directories
|
|
|
|
|
rsync -avz /usr/local/freeswitch/conf /etc/freeswitch
|
|
|
|
|
rsync -avz /usr/local/freeswitch/recordings /var/lib/freeswitch
|
|
|
|
|
rsync -avz /usr/local/freeswitch/storage /var/lib/freeswitch
|
|
|
|
|
rsync -avz /usr/local/freeswitch/scripts /usr/share/freeswitch
|