Asterisk Upgrade: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
tar xvf asterisk-$ASTER-current.tar.gz
tar xvf asterisk-$ASTER-current.tar.gz
rm -f asterisk-$ASTER-current.tar.gz
rm -f asterisk-$ASTER-current.tar.gz
if [ -d $(tar tvf asterisk-$ASTER-current.tar.gz | tail -n 1 | cut -d' ' -f11 | cut -d'/' -f1) ]
then
  echo "Folder already Exists.  Upgrade Aborted"
  exit 0
fi


cd $(ls -d /usr/src/asterisk-$ASTER* | tail -1 |  cut -d' ' -f8)
cd $(ls -d /usr/src/asterisk-$ASTER* | tail -1 |  cut -d' ' -f8)
Line 22: Line 28:
   menuselect/menuselect --disable res_ari --disable res_ari_model menuselect.makeopts
   menuselect/menuselect --disable res_ari --disable res_ari_model menuselect.makeopts
  fi
  fi
make
make install
</pre>
manual commands
<pre>
./configure
./contrib/scripts/get_mp3_source.sh
make menuselect.makeopts
menuselect/menuselect --enable format_mp3 --enable app_mysql --enable cdr_mysql --enable app_fax --enable app_meetme --disable pbx_ael --disable pbx_realtime --disable-category MENUSELECT_CDR --disable-category MENUSELECT_CORE_SOUNDS --disable-category MENUSELECT_MOH --disable-category MENUSELECT_EXTRA_SOUNDS menuselect.makeopts
menuselect/menuselect --disable res_ari --disable res_ari_model menuselect.makeopts


make
make

Latest revision as of 02:46, 3 June 2014

I've been using this bash script to upgrade my Asterisk versions, staying with the same release number.

#!/bin/bash

ASTER=12


cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-$ASTER-current.tar.gz
tar xvf asterisk-$ASTER-current.tar.gz
rm -f asterisk-$ASTER-current.tar.gz

if [ -d $(tar tvf asterisk-$ASTER-current.tar.gz | tail -n 1 | cut -d' ' -f11 | cut -d'/' -f1) ]
 then
   echo "Folder already Exists.  Upgrade Aborted"
   exit 0
 fi

cd $(ls -d /usr/src/asterisk-$ASTER* | tail -1 |  cut -d' ' -f8)
./configure
./contrib/scripts/get_mp3_source.sh

make menuselect.makeopts
menuselect/menuselect --enable format_mp3 --enable app_mysql --enable cdr_mysql --enable app_fax --enable app_meetme --disable pbx_ael --disable pbx_realtime --disable-category MENUSELECT_CDR --disable-category MENUSELECT_CORE_SOUNDS --disable-category MENUSELECT_MOH --disable-category MENUSELECT_EXTRA_SOUNDS menuselect.makeopts

if [ $ASTER -eq 12 ]
 then
  menuselect/menuselect --disable res_ari --disable res_ari_model menuselect.makeopts
 fi

make
make install


manual commands

./configure
./contrib/scripts/get_mp3_source.sh

make menuselect.makeopts

menuselect/menuselect --enable format_mp3 --enable app_mysql --enable cdr_mysql --enable app_fax --enable app_meetme --disable pbx_ael --disable pbx_realtime --disable-category MENUSELECT_CDR --disable-category MENUSELECT_CORE_SOUNDS --disable-category MENUSELECT_MOH --disable-category MENUSELECT_EXTRA_SOUNDS menuselect.makeopts

menuselect/menuselect --disable res_ari --disable res_ari_model menuselect.makeopts

make
make install