Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify update process #1831

Closed
3 tasks
Rafiot opened this issue Jan 10, 2017 · 3 comments
Closed
3 tasks

Simplify update process #1831

Rafiot opened this issue Jan 10, 2017 · 3 comments
Labels
T: enhancement Type: enhancement. This issue requires improving an existing feature

Comments

@Rafiot
Copy link
Member

Rafiot commented Jan 10, 2017

  • Add a bash script to fetch the latest release and update the submodules
  • Add an optional button on the web interface to tun that script
  • Display the new configuration options after update
@RichieB2B
Copy link
Contributor

I have a bash script that updates multiple MISP instances if you're interested.

@chilltownmayor
Copy link

I would be interested in looking at that update script.

thanks!

@RichieB2B
Copy link
Contributor

This is what I've been using:

#!/bin/bash

export http_proxy=http://proxy.local:3128
export https_proxy=http://proxy.local:3128

doupdate () {
        cd $1
        git pull
        git submodule init
        git submodule update
        chgrp -R apache $1
        find $1 -type d -exec chmod g=rx {} \;
        chmod -R g+r,o= $1
        chown apache:apache $1/app/files
        chown apache:apache $1/app/files/terms
        chown apache:apache $1/app/files/scripts/tmp
        chown apache:apache $1/app/Plugin/CakeResque/tmp
        chown -R apache:apache $1/app/tmp
        chown -R apache:apache $1/app/webroot/img/orgs
        chown -R apache:apache $1/app/webroot/img/custom
        chmod 750 $1/app/Console/worker/start.sh
}

if [ -z "$1" ]; then
        MISP=( /www/misp.*/html/MISP )
else
        MISP=()
        while [ ! -z "$1" ]; do
                MISP+=( /srv/www/misp.$1/html/MISP )
                shift
        done
fi

for i in "${MISP[@]}"; do
        echo Updating $i
        doupdate $i
done

@BenjaminJoly BenjaminJoly added the T: enhancement Type: enhancement. This issue requires improving an existing feature label Jan 25, 2018
@Rafiot Rafiot closed this as completed Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: enhancement Type: enhancement. This issue requires improving an existing feature
Projects
None yet
Development

No branches or pull requests

4 participants