Thursday, January 10, 2013

Upgrading Mahara to version 1.6.2

Upgrade from 1.5.1 to 1.6.2

To be on the safe side backup up the database before proceding with the upgrade:
[root@vle bin]# pg_dump -U mahara mahara > ../mahara_dump_Jan13

I used the following modified script for the upgrade:

[root@vle bin]# cat upgrademahara
cd /root
echo "Please put Mahara into maintenance mode before performing the upgrade
"echo "Press any key when ready"
read dummy
echo "Enter new version number of Mahara (must be 1.6 series) to upgrade to e.g. 1.6.2"
read newver
echo "Enter existing version number of Mahara to backup e.g. 1.5.1"
read oldver
mv /var/www/html/mahara /root/mahara_old_$oldver
tar -xzvf mahara-$newver.tar.gz
cd mahara-$newver
cp -pr htdocs /var/www/html
mv /var/www/html/htdocs /var/www/html/mahara
cp /root/mahara_old_$oldver/config.php /var/www/html/mahara
cp -pr /root/mahara_old_$oldver/artefact/outcome /var/www/html/mahara/artefact
echo "Please visit to complete the upgrade"

On visiting the upgrade page the upgrade ran smoothly