Update package-release.sh

This commit is contained in:
FusionPBX 2017-08-16 18:35:21 -06:00 committed by GitHub
parent 79c146e8ba
commit 7e0513a0ec
1 changed files with 7 additions and 9 deletions

View File

@ -32,12 +32,10 @@ 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:'
if [ ."$cpu_architecture" = ."x86" ]; then #remove the music package to protect music on hold from package updates
#remove the music package to protect music on hold from package updates mkdir -p /usr/share/freeswitch/sounds/temp
mkdir -p /usr/share/freeswitch/sounds/temp mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/temp
mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/temp apt-get remove -y --force-yes freeswitch-music-default
apt-get remove -y --force-yes freeswitch-music-default mkdir -p /usr/share/freeswitch/sounds/music/default
mkdir -p /usr/share/freeswitch/sounds/music/default mv /usr/share/freeswitch/sounds/temp/* /usr/share/freeswitch/sounds/music/default
mv /usr/share/freeswitch/sounds/temp/* /usr/share/freeswitch/sounds/music/default rm -R /usr/share/freeswitch/sounds/temp
rm -R /usr/share/freeswitch/sounds/temp
fi