forked from norman/fusionpbx-install.sh-github-mirror
16
debian/resources/switch/package-release.sh
vendored
16
debian/resources/switch/package-release.sh
vendored
@@ -32,10 +32,12 @@ apt-get install -y --force-yes freeswitch-music-default
|
|||||||
#make sure that postgresql is started before starting freeswitch
|
#make sure that postgresql is started before starting freeswitch
|
||||||
sed -i /lib/systemd/system/freeswitch.service -e s:'local-fs.target:local-fs.target postgresql.service:'
|
sed -i /lib/systemd/system/freeswitch.service -e s:'local-fs.target:local-fs.target postgresql.service:'
|
||||||
|
|
||||||
#remove the music package to protect music on hold from package updates
|
if [ ."$cpu_architecture" = ."x86" ]; then
|
||||||
mkdir -p /usr/share/freeswitch/sounds/temp
|
#remove the music package to protect music on hold from package updates
|
||||||
mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/temp
|
mkdir -p /usr/share/freeswitch/sounds/temp
|
||||||
apt-get remove -y --force-yes freeswitch-music-default
|
mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/temp
|
||||||
mkdir -p /usr/share/freeswitch/sounds/music/default
|
apt-get remove -y --force-yes freeswitch-music-default
|
||||||
mv /usr/share/freeswitch/sounds/temp/* /usr/share/freeswitch/sounds/music/default
|
mkdir -p /usr/share/freeswitch/sounds/music/default
|
||||||
rm -R /usr/share/freeswitch/sounds/temp
|
mv /usr/share/freeswitch/sounds/temp/* /usr/share/freeswitch/sounds/music/default
|
||||||
|
rm -R /usr/share/freeswitch/sounds/temp
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user