EXPERIMENTAL: update-svn

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,233
I tweaked some code from JBH and built an EXPERIMENTAL script to update PIAF-Purple (Asterisk 1.8 only!) builds to the latest Asterisk 1.8 SVN release for those that want to live on the Bleeding Edge. Feel free to try it on a NON-PRODUCTION PIAF-Purple system ONLY!


pioneer.gif
20110620-cf6f7b5wm7xhipuhyb23yccw97.jpg



Log into your existing PIAF-Purple (Asterisk 1.8) server as root and issue the following commands:

wget http://pbxinaflash.com/update-svn.tar.gz
tar zxvf update-svn*
./update-svn
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
From a FreePBX Developer's standpoint, I love this! :D:D:D

I tweaked some code from JBH and built an EXPERIMENTAL script to update PIAF-Purple (Asterisk 1.8 only!) builds to the latest Asterisk 1.8 SVN release for those that want to live on the Bleeding Edge. Feel free to try it on a NON-PRODUCTION PIAF-Purple system ONLY!


pioneer.gif
20110620-cf6f7b5wm7xhipuhyb23yccw97.jpg
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Actually I am unable to run it


root@localhost:~ $ ./update-svn
-bash: ./update-svn: cannot execute binary file
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,233
There was a glitch in the upload. It's just a text file inside a gzipped tarball so tar zxvf update-svn.tar.gz should do it. Try downloading it again. Sorry.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Thanks it works great now :)

There was a glitch in the upload. It's just a text file inside a gzipped tarball so tar zxvf update-svn.tar.gz should do it. Try downloading it again. Sorry.
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

Nice addition, this will help those who want to be pioneers test and improve bleeding edge versions of Asterisk as suggested.

However, I've made some slight changes to your script to allow people to recompile an older version they may have downloaded from SVN, or indeed to go back to the original supplied version, for instance to do comparisons between versions, or to go back to a known working version, simply by going back to the appropriate date/time stamped directory, and issuing make distclean, then following the rest of the script from make clean.

Code:
#!/bin/bash


#Suggested Changes, JRoper, 20110621

#Variable to put asterisk directories with DT stamp.
DATETIME=$(date +"%Y%m%d%H%M%S")

;amportal stop
#amportal kill better than stop, graceful is probably not required.
amportal kill
cd /usr/src
#rm -r asterisk-old
#Rather than delete, lets keep so we can go back.
mkdir asterisk-upgrade-backups-$DATETIME
#mv asterisk asterisk-old
mv asterisk asterisk-upgrade-backups-$DATETIME/asterisk
svn checkout http://svn.asterisk.org/svn/asterisk/branches/1.8 asterisk
cd asterisk
make clean
./configure
#Suggest Make Menuselect here
make menuselect
make
make install
cd ..
cd asterisk-flite
make clean
make
make install
amportal start
echo "Checking whether Flite is functioning..."
asterisk -rx "core show application flite"
echo "Checking whether CDR reporting is functioning..."
asterisk -rx "module show like mysql"
cd /root
status


Joe
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,233
SVN update works for me without running make menuselect. Both CDR and Flite get loaded just fine. No idea why. :crazy:
 

Members online

No members online now.

Forum statistics

Threads
25,826
Messages
167,871
Members
19,252
Latest member
macrohat
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top