Use cake-resque:4.1.2

- Remove --no-update for cake-resque
 - Added UPDATE.txt for keeping up2date between major releases
pull/450/head
Richard van den Berg 2015-04-08 13:05:05 +02:00
parent 46bd782cf0
commit eb9adae030
5 changed files with 58 additions and 5 deletions

View File

@ -77,7 +77,7 @@ git submodule update
# Once done, install CakeResque along with its dependencies if you intend to use the built in background jobs:
cd /var/www/MISP/app
curl -s https://getcomposer.org/installer | php
php composer.phar require --no-update kamisama/cake-resque:4.1.0
php composer.phar require kamisama/cake-resque:4.1.2
php composer.phar config vendor-dir Vendor
php composer.phar install

View File

@ -77,7 +77,7 @@ git submodule update
# Once done, install CakeResque along with its dependencies if you intend to use the built in background jobs:
cd /var/www/MISP/app
curl -s https://getcomposer.org/installer | php
php composer.phar require --no-update kamisama/cake-resque:4.1.0
php composer.phar require kamisama/cake-resque:4.1.2
php composer.phar config vendor-dir Vendor
php composer.phar install

View File

@ -64,7 +64,7 @@ git submodule update
# Once done, install CakeResque along with its dependencies if you intend to use the built in background jobs:
cd /var/www/MISP/app
curl -s https://getcomposer.org/installer | php
php composer.phar require --no-update kamisama/cake-resque:4.1.0
php composer.phar require kamisama/cake-resque:4.1.2
php composer.phar config vendor-dir Vendor
php composer.phar install

53
INSTALL/UPDATE.txt Normal file
View File

@ -0,0 +1,53 @@
# After installing MISP you can keep it up to date by periodically running the commands below.
# 1. Update the MISP code to the latest hotfix. If a new major version (2.4.x) has been released, refer to UPGRADE.txt instead.
cd /var/www/MISP
git pull
# 2. Update CakePHP to the latest 2.6 code
cd /var/www/MISP/Lib/cakephp
git fetch origin
git checkout 2.6
# 3. Update Mitre's STIX and its dependencies
cd /var/www/MISP/app/files/scripts/python-cybox
git pull
python setup.py install
cd /var/www/MISP/app/files/scripts/python-stix
git pull
python setup.py install
# 4. Update CakeResque and it's dependencies
cd /var/www/MISP/app
# Edit composer.json so that cake-resque is allowed to be updated
# "kamisama/cake-resque": ">=4.1.2"
vim composer.json
php composer.phar update
# To use the scheduler worker for scheduled tasks, do the following:
cp -fa /var/www/MISP/INSTALL/setup/config.php /var/www/MISP/app/Plugin/CakeResque/Config/config.php
# 5. Make sure all file permissions are set correctly
chown -R root:www-data /var/www/MISP
find /var/www/MISP -type d -exec chmod g=rx {} \;
chmod -R g+r,o= /var/www/MISP
chown www-data:www-data /var/www/MISP/app/files
chown www-data:www-data /var/www/MISP/app/files/terms
chown www-data:www-data /var/www/MISP/app/files/scripts/tmp
chown www-data:www-data /var/www/MISP/app/Plugin/CakeResque/tmp
chown -R www-data:www-data /var/www/MISP/app/tmp
chown -R www-data:www-data /var/www/MISP/app/webroot/img/orgs
chown -R www-data:www-data /var/www/MISP/app/webroot/img/custom
# 6. Restart the CakeResque workers
su www-data -c 'bash /var/www/MISP/app/Console/worker/start.sh'
# You can also do this using the MISP application by navigating to the workers tab in the server settings and clicking on the "Restart all workers" button.

View File

@ -32,7 +32,7 @@ python setup.py install
# install / update CakeResque (using the background workers is optional buy highly recommended)
cd /var/www/MISP/app
curl -s https://getcomposer.org/installer | php
php composer.phar require --no-update kamisama/cake-resque:4.1.0
php composer.phar require kamisama/cake-resque:4.1.2
php composer.phar config vendor-dir Vendor
php composer.phar install
@ -78,4 +78,4 @@ chown -R www-data:www-data /var/www/MISP/<directory path with an indicated issue
# Amend your rc.local using the following command to always start the background workers using the apache user (substitute www-data with your apache user)
su www-data -c 'bash /var/www/MISP/app/Console/worker/start.sh'
# Start the background workers using the application by navigating to the workers tab in the server settings and clicking on the "Restart all workers" button.
# Start the background workers using the application by navigating to the workers tab in the server settings and clicking on the "Restart all workers" button.