mirror of https://github.com/MISP/MISP
fix: [bug] Check for non-existen directory fails if exists
parent
5190346509
commit
9fef5378df
|
@ -9,8 +9,9 @@ mail2misp () {
|
||||||
cd /usr/local/src/
|
cd /usr/local/src/
|
||||||
sudo apt-get install cmake libcaca-dev liblua5.3-dev -y
|
sudo apt-get install cmake libcaca-dev liblua5.3-dev -y
|
||||||
false; while [[ $? -ne 0 ]]; do $SUDO_CMD git clone https://github.com/MISP/mail_to_misp.git; done
|
false; while [[ $? -ne 0 ]]; do $SUDO_CMD git clone https://github.com/MISP/mail_to_misp.git; done
|
||||||
[[ ! -d "faup" ]] && false; while [[ $? -ne 0 ]]; do $SUDO_CMD git clone git://github.com/stricaud/faup.git faup; done
|
## TODO: The below fails miserably (obviously) if faup/gtcac dirs exist, let's just make the dangerous assumption (for the sake of the installer, that they exist)
|
||||||
[[ ! -d "gtcaca" ]] && false; while [[ $? -ne 0 ]]; do $SUDO_CMD git clone git://github.com/stricaud/gtcaca.git gtcaca; done
|
##[[ ! -d "faup" ]] && false; while [[ $? -ne 0 ]]; do $SUDO_CMD git clone git://github.com/stricaud/faup.git faup; done
|
||||||
|
##[[ ! -d "gtcaca" ]] && false; while [[ $? -ne 0 ]]; do $SUDO_CMD git clone git://github.com/stricaud/gtcaca.git gtcaca; done
|
||||||
sudo chown -R ${MISP_USER}:${MISP_USER} faup mail_to_misp gtcaca
|
sudo chown -R ${MISP_USER}:${MISP_USER} faup mail_to_misp gtcaca
|
||||||
cd gtcaca
|
cd gtcaca
|
||||||
$SUDO_CMD mkdir -p build
|
$SUDO_CMD mkdir -p build
|
||||||
|
|
Loading…
Reference in New Issue