Asterisk Upgrade: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
make | make | ||
make install | make install | ||
</pre> | |||
manual commands | |||
<pre> | |||
./configure | |||
./contrib/scripts/get_mp3_source.sh | |||
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 | |||
</pre> | </pre> | ||
[[Category : Asterisk]] [[Category : Linux]] | [[Category : Asterisk]] [[Category : Linux]] |
Revision as of 02:44, 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 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