Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Assumptions:

  • Linux RedHat WS 4.0
  • Having Sakai v2.0.0 installed
  • Having Melete v2.0.2 installed
  • DB is MySQL
  • Installation home directory "/home/sakai"
  • Tomcat is located in "/home/sakai/local/jakarta-tomcat-5.5.9" (I also soft-linked this: "ln -s jakarta-tomcat-5.5.9 tomcat")
  • Sakai v2.0.0 source dir "/home/sakai/sakai-src"
  • Melete v2.0.2 source dir "/home/sakai/melete2_Htmlarea_Release2.0.2"
  • Shutdown current tomcat installation
  • Save your Sakai configuration files in "/home/sakai/local/tomcat/sakai
    cd /home/sakai/local/tomcat
    tar cvzf sakai.tgz sakai
    mv sakai.tgz /home/sakai
  • Remove tomcat
    cd /home/sakai/local
    rm tomcat
    rm -fr jakarta-tomcat-5.5.9
  • Copy back the sakai configuration files
    cd /home/sakai/local/tomcat
    cp ~/sakai.tgz .
    tar xvzf sakai.tgz
    rm sakai.tgz
  • Move old sakai source
    mv sakai-src sakai-src_2-0-0
  • Unpack new sakai source
    tar xvzf sakai-src_2-0-1.tar.gz
  • Renmame new sakai soruce directory
    mv sakai-src sakai-src_2-0-1
  • Make the Melete specific changes to the sakai soruce
  • Edit registration.xml in "sakai-src_2-0-1/legacy/component/src/config/"
    • <function name="melete.author" />
    • <function name="melete.student" />
  • From within sakai-src_2-0-1 build with maven
    cd ~/sakai-src_2-0-1
    maven sakai

...

  • Now we rebuild Melete but first need to edit the project.xml file to account for the version change
    cd /home/sakai/melete2_Htmlarea_Release2.0.2
    vi project.xml
  • Change this line "<currentVersion>2.0.0</currentVersion>" to "<currentVersion>2.0.1</currentVersion>" in project.xml
    NOTE: I had to chmod it to 644 because it was read only
  • Build Melete with maven
    cd /home/sakai/melete2_Htmlarea_Release2.0.2
    maven cln bld dpl
  • Note: The samigo-2.0.0-patch1.tar file is not an archive bug a text file that contains the SQL statements to patch the DB
  • So we need to rename the above file
    from:
    samigo-2.0.0-patch1.tar
    to:
    samigo-2.0.0-patch1.sql
  • Now we can apply the patch:
    mysql -u username -p schemaname < samigo-2.0.0-patch1.sql --force
  • That's it:
  • Start Tomcat

-NOTE: ( I had to start and stop tomcat twice because I got some wired Samigo JSP errors after accessing Samigo after the first start.)