2015-09-25 11:58:42 +02:00
|
|
|
# 1. Upgrade procedure from v2.3 to v2.4
|
2016-02-10 16:38:44 +01:00
|
|
|
# it is assumed that the upgrade happens from an up-to-date 2.3 instance
|
2016-01-04 21:33:51 +01:00
|
|
|
# It is a good idea to back up your MISP installation and data before upgrading to a new release.
|
2013-05-31 17:50:00 +02:00
|
|
|
|
2014-10-07 17:53:22 +02:00
|
|
|
# - git pull the latest version of MISP from https://github.com/MISP/MISP.git
|
2016-01-04 21:33:51 +01:00
|
|
|
git pull
|
|
|
|
git checkout 2.4
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
2013-05-31 17:50:00 +02:00
|
|
|
|
2014-10-13 10:49:56 +02:00
|
|
|
# delete everything from MISP's cache directory to get rid of the cached models
|
|
|
|
find /var/www/MISP/app/tmp/cache/ -type f -not -name 'empty' -delete
|
|
|
|
|
2014-10-20 14:44:03 +02:00
|
|
|
# clear the old submodule cached entry for CakeResque
|
|
|
|
cd /var/www/MISP
|
|
|
|
git rm --cached app/Plugin/CakeResque/
|
|
|
|
|
2016-01-20 11:45:23 +01:00
|
|
|
# make sure that your database is backed up
|
|
|
|
mysqldump -u [misp_mysql_user] -p [misp_database] > /home/[my_user]/misp_db_pre_migration.sql
|
2015-09-25 11:58:42 +02:00
|
|
|
# upgrade your database with the new tables / fields introduces in 2.4
|
|
|
|
cd /var/www/MISP/INSTALL
|
|
|
|
mysql -u [misp_mysql_user] -p [misp_database] < upgrade_2.4.sql
|
2014-10-20 14:44:03 +02:00
|
|
|
|
2015-09-25 11:58:42 +02:00
|
|
|
# After this run the upgrade script from within the application
|
2016-01-20 11:45:23 +01:00
|
|
|
# simply navigate to Administration -> Administrative Tools -> "Upgrade to 2.4"
|
|
|
|
# Once that has completed successfully run the 2.3->2.4 cleanup script
|
2016-02-10 16:38:44 +01:00
|
|
|
# simply navigate to Administration -> Administrative Tools -> "2.3->2.4 cleanup script"
|
2013-05-31 17:50:00 +02:00
|
|
|
|
2016-01-11 16:12:46 +01:00
|
|
|
# If everything went fine, switch the system to live:
|
|
|
|
# Administration -> Server Settings -> MISP Settings -> MISP.live -> True
|
|
|
|
# NOTE: if nothing happens, please check the permissions of the config files in /var/www/MISP/app/Config/
|
|
|
|
# and make sure the webserver has the write permissions on them:
|
|
|
|
# chown -R www-data:www-data /var/www/MISP/app/Config/
|
|
|
|
|
2016-01-04 21:33:51 +01:00
|
|
|
# Let us know if you run into any issues during or after the upgrade
|