Let the user specify the MISP branch with a variable.

pull/3/head
Cédric Bonhomme 2017-09-10 16:18:57 +02:00
parent 676ce88d29
commit 01a22b84fb
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#! /usr/bin/env bash
MISP_BRANCH='2.4'
# Database configuration
DBHOST='localhost'
DBNAME='misp'
@ -103,7 +105,7 @@ echo "--- Retrieving MISP ---"
mkdir $PATH_TO_MISP
sudo chown www-data:www-data $PATH_TO_MISP
cd $PATH_TO_MISP
sudo -u www-data git clone https://github.com/MISP/MISP.git $PATH_TO_MISP
sudo -u www-data git clone -b $MISP_BRANCH https://github.com/MISP/MISP.git $PATH_TO_MISP
#git checkout tags/$(git describe --tags `git rev-list --tags --max-count=1`)
sudo -u www-data git config core.filemode false
# chown -R www-data $PATH_TO_MISP