BEFORE you start: Full backup of the database, the web files, and the configuration files. Preferably using the /usr/share/astguiclient/ADMIN_backup.pl script with the ftp option to push the backup off the server (just in case).1) Note for reference your DB_schema and SVN version from admin->system settings and /etc/astguiclient.conf (these should agree with each other).
https://xx.xx.xx.xx/vicidial/admin.php? ... 1111111111SVN Version: XXXX
DB Schema Version: XXXX
- Code: Select all
grep ExpectedDBSchema /etc/astguiclient.conf -n
ExpectedDBSchema => XXXX
2) change directory into your svn folder of the original install and check the svn revision present
- Code: Select all
cd /usr/src/astguiclient/trunk; svn info
- Code: Select all
Revision: XXXX
* Should match previous. If it doesn't consider stopping if you're not sure what you're doing.
3) Upgrade your server's repository to the latest SVN revision
- Code: Select all
cd /usr/src/astguiclient/trunk; svn up
4) Familiarize yourself with the upgrade document!
- Code: Select all
cd /usr/src/astguiclient/trunk; cat UPGRADE
5) Advice:
Advice A: in the .sql files you are expected to upgrade with: Delete all the lines that have already been executed due to your present db schema.
EG: If you are at ExpectedDBSchema => 1662, delete all lines previous to this one in /usr/src/astguiclient/trunk/extras/upgrade_2.14.sql:
- Code: Select all
UPDATE system_settings SET db_schema_version='1662',db_schema_update_date=NOW() where db_schema_version < 1662;
Perhaps copy it to upgrade_2.14X.sql before making changes.
Advice B: Record any manual changes to any .conf files you have made directly, such as "/etc/asterisk/sip.conf" => "externip = ????". Perhaps by saving a copy of the files themselves for reference.
- Code: Select all
perl install.pl --help
I highly recommend you invoke the --copy_sample_conf_files option. Sometimes there are changes that make this a necessity, sometimes there are not. If you've made "unrecorded/unremembered" changes to any .conf files, this is a good time to test everything and find out ... so you can record those changes.
6) The UPGRADE document is the actual instructions, of course.
But running "perl install.pl" in the folder "/usr/src/astguiclient/trunk/" and answering the questions is how the upgrade works.