Update ====== This is a guide about how to upgrade *LibrePlan* when a new version is released. If you want to know how to install the application ``INSTALL`` file. .. contents:: LibrePlan automatic update -------------------------- Ubuntu PPAs ~~~~~~~~~~~ Instructions:: $ sudo apt-get update $ sudo apt-get install libreplan Debian packages ~~~~~~~~~~~~~~~ Instructions: * Download the new package:: $ wget http://downloads.sourceforge.net/project/libreplan/NavalPlan/navalplan_1.1.1-1_amd64.deb * Install package:: # dpkg -i navalplan_1.1.1-1_amd64.deb * Install new dependencies if needed:: # apt-get install -f LibrePlan manual update ----------------------- Debian/Ubuntu ~~~~~~~~~~~~~ * Stop Tomcat:: # /etc/init.d/tomcat6 stop * Download database upgrade scripts from previous version. For example, if you are upgrading from *LibrePlan 1.0.4* to *LibrePlan 1.1.1* you should download ``upgrade_1.1.0.sql``:: $ wget http://downloads.sourceforge.net/project/libreplan/NavalPlan/upgrade_1.1.0.sql * Upgrade database:: $ psql -h localhost -U libreplan -W libreplan < upgrade_1.1.0.sql * Download ``.war`` file of new version from SourceForge.net:: $ wget -O libreplan.war http://downloads.sourceforge.net/project/libreplan/NavalPlan/navalplan_1.1.1.war * Backup current deployed application:: # mv /var/lib/tomcat6/webapps/libreplan/ /tmp/ * Copy war to Tomcat 6 web applications directory:: # cp libreplan.war /var/lib/tomcat6/webapps/ * Start Tomcat 6:: # /etc/init.d/tomcat6 start * Go to http://localhost:8080/libreplan/ openSUSE ~~~~~~~~ * Stop Tomcat:: # /etc/init.d/tomcat6 stop * Download database upgrade scripts from previous version. For example, if you are upgrading from *LibrePlan 1.0.4* to *LibrePlan 1.1.1* you should download ``upgrade_1.1.0.sql``:: $ wget http://downloads.sourceforge.net/project/libreplan/NavalPlan/upgrade_1.1.0.sql * Upgrade database:: $ psql -h localhost -U libreplan -W libreplan < upgrade_1.1.0.sql * Download ``.war`` file of new version from SourceForge.net:: $ wget -O libreplan.war http://downloads.sourceforge.net/project/libreplan/NavalPlan/navalplan_1.1.1.war * Backup current deployed application:: # mv /srv/tomcat6/webapps/libreplan/ /tmp/ * Copy war to Tomcat 6 web applications directory:: # cp libreplan.war /srv/tomcat6/webapps/ * Start Tomcat 6:: # /etc/init.d/tomcat6 start * Go to http://localhost:8080/libreplan/