mirror of https://github.com/MISP/MISP
fix: [installer] Variable typo for Base URL
chg: [installer] Renamed installCoredDepspull/4152/head
parent
e3602c2268
commit
dc49b2cb2b
|
@ -398,7 +398,7 @@ setBaseURL () {
|
||||||
if [[ $(checkManufacturer) != "innotek GmbH" ]]; then
|
if [[ $(checkManufacturer) != "innotek GmbH" ]]; then
|
||||||
debug "We guess that this is a physical machine and cannot possibly guess what the MISP_BASEURL might be."
|
debug "We guess that this is a physical machine and cannot possibly guess what the MISP_BASEURL might be."
|
||||||
if [[ "$UNATTENDED" != "1" ]]; then
|
if [[ "$UNATTENDED" != "1" ]]; then
|
||||||
echo "You can now enter your own BASE_URL, if you wish to NOT do that, the BASE_URL will be empty, which will work, but ideally you configure it afterwards."
|
echo "You can now enter your own MISP_BASEURL, if you wish to NOT do that, the MISP_BASEURL will be empty, which will work, but ideally you configure it afterwards."
|
||||||
echo "Do you want to change it now? (y/n) "
|
echo "Do you want to change it now? (y/n) "
|
||||||
read ANSWER
|
read ANSWER
|
||||||
ANSWER=$(echo $ANSWER |tr [A-Z] [a-z])
|
ANSWER=$(echo $ANSWER |tr [A-Z] [a-z])
|
||||||
|
@ -703,14 +703,14 @@ theEnd () {
|
||||||
|
|
||||||
clear
|
clear
|
||||||
space
|
space
|
||||||
echo -e "${LBLUE}MISP${NC} Installed, access here: ${BASE_URL}"
|
echo -e "${LBLUE}MISP${NC} Installed, access here: ${MISP_BASEURL}"
|
||||||
echo
|
echo
|
||||||
echo "User: admin@admin.test"
|
echo "User: admin@admin.test"
|
||||||
echo "Password: admin"
|
echo "Password: admin"
|
||||||
space
|
space
|
||||||
[[ -n $DASHBOARD ]] || [[ -n $ALL ]] && echo -e "${LBLUE}MISP${NC} Dashboard, access here: ${BASE_URL}:8001"
|
[[ -n $DASHBOARD ]] || [[ -n $ALL ]] && echo -e "${LBLUE}MISP${NC} Dashboard, access here: ${MISP_BASEURL}:8001"
|
||||||
[[ -n $DASHBOARD ]] || [[ -n $ALL ]] && space
|
[[ -n $DASHBOARD ]] || [[ -n $ALL ]] && space
|
||||||
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo -e "viper-web installed, access here: ${BASE_URL}:8888"
|
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo -e "viper-web installed, access here: ${MISP_BASEURL}:8888"
|
||||||
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo -e "viper-cli configured with your ${LBLUE}MISP${NC} ${RED}Site Admin Auth Key${NC}"
|
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo -e "viper-cli configured with your ${LBLUE}MISP${NC} ${RED}Site Admin Auth Key${NC}"
|
||||||
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo
|
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo
|
||||||
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo "User: admin"
|
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo "User: admin"
|
||||||
|
@ -734,6 +734,12 @@ theEnd () {
|
||||||
echo "sudo postfix reload"
|
echo "sudo postfix reload"
|
||||||
space
|
space
|
||||||
echo -e "Enjoy using ${LBLUE}MISP${NC}. For any issues see here: https://github.com/MISP/MISP/issues"
|
echo -e "Enjoy using ${LBLUE}MISP${NC}. For any issues see here: https://github.com/MISP/MISP/issues"
|
||||||
|
space
|
||||||
|
if [ $UNATTENDED == "1" ]; then
|
||||||
|
echo -e "${RED}Unattended install!${NC}"
|
||||||
|
echo -e "This means we guessed the Base URL, it might be wrong, please double check."
|
||||||
|
space
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$USER" != "$MISP_USER" ]]; then
|
if [[ "$USER" != "$MISP_USER" ]]; then
|
||||||
sudo su - ${MISP_USER}
|
sudo su - ${MISP_USER}
|
||||||
|
@ -761,7 +767,7 @@ checkSudoKeeper () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
installCoredDeps () {
|
installCoreDeps () {
|
||||||
debug "Installing core dependencies"
|
debug "Installing core dependencies"
|
||||||
# Install the dependencies: (some might already be installed)
|
# Install the dependencies: (some might already be installed)
|
||||||
sudo apt-get install curl gcc git gpg-agent make python python3 openssl redis-server sudo vim zip virtualenv libfuzzy-dev -y
|
sudo apt-get install curl gcc git gpg-agent make python python3 openssl redis-server sudo vim zip virtualenv libfuzzy-dev -y
|
||||||
|
@ -1584,13 +1590,13 @@ installMISPubuntuSupported () {
|
||||||
progress 4
|
progress 4
|
||||||
|
|
||||||
# Starting friendly UI spinner
|
# Starting friendly UI spinner
|
||||||
spin &
|
#spin &
|
||||||
SPIN_PID=$!
|
#SPIN_PID=$!
|
||||||
disown
|
#disown
|
||||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
#trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||||
|
|
||||||
# Install Core Dependencies - functionLocation('INSTALL.ubuntu1804.md')
|
# Install Core Dependencies - functionLocation('INSTALL.ubuntu1804.md')
|
||||||
[[ -n $CORE ]] || [[ -n $ALL ]] && installCoredDeps 2> /dev/null > /dev/null
|
[[ -n $CORE ]] || [[ -n $ALL ]] && installCoreDeps 2> /dev/null > /dev/null
|
||||||
progress 4
|
progress 4
|
||||||
|
|
||||||
# Install PHP 7.2 Dependencies - functionLocation('INSTALL.ubuntu1804.md')
|
# Install PHP 7.2 Dependencies - functionLocation('INSTALL.ubuntu1804.md')
|
||||||
|
@ -1643,16 +1649,17 @@ installMISPubuntuSupported () {
|
||||||
progress 4
|
progress 4
|
||||||
|
|
||||||
# Disable spinner
|
# Disable spinner
|
||||||
(kill $SPIN_PID 2>&1) >/dev/null
|
#(kill $SPIN_PID 2>&1) >/dev/null
|
||||||
|
|
||||||
# Check if /usr/local/src is writeable by target install user - functionLocation('generic/supportFunctions.md')
|
# Check if /usr/local/src is writeable by target install user - functionLocation('generic/supportFunctions.md')
|
||||||
[[ -n $CORE ]] || [[ -n $ALL ]] && checkUsrLocalSrc
|
[[ -n $CORE ]] || [[ -n $ALL ]] && checkUsrLocalSrc
|
||||||
progress 4
|
progress 4
|
||||||
|
|
||||||
spin &
|
## Resume spinner
|
||||||
SPIN_PID=$!
|
#spin &
|
||||||
disown
|
#SPIN_PID=$!
|
||||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
#disown
|
||||||
|
#trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||||
|
|
||||||
# Install misp-modules - functionLocation('generic/misp-modules-debian.md')
|
# Install misp-modules - functionLocation('generic/misp-modules-debian.md')
|
||||||
[[ -n $MODULES ]] || [[ -n $ALL ]] && mispmodules
|
[[ -n $MODULES ]] || [[ -n $ALL ]] && mispmodules
|
||||||
|
|
|
@ -218,13 +218,13 @@ installMISPubuntuSupported () {
|
||||||
progress 4
|
progress 4
|
||||||
|
|
||||||
# Starting friendly UI spinner
|
# Starting friendly UI spinner
|
||||||
spin &
|
#spin &
|
||||||
SPIN_PID=$!
|
#SPIN_PID=$!
|
||||||
disown
|
#disown
|
||||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
#trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||||
|
|
||||||
# Install Core Dependencies - functionLocation('INSTALL.ubuntu1804.md')
|
# Install Core Dependencies - functionLocation('INSTALL.ubuntu1804.md')
|
||||||
[[ -n $CORE ]] || [[ -n $ALL ]] && installCoredDeps 2> /dev/null > /dev/null
|
[[ -n $CORE ]] || [[ -n $ALL ]] && installCoreDeps 2> /dev/null > /dev/null
|
||||||
progress 4
|
progress 4
|
||||||
|
|
||||||
# Install PHP 7.2 Dependencies - functionLocation('INSTALL.ubuntu1804.md')
|
# Install PHP 7.2 Dependencies - functionLocation('INSTALL.ubuntu1804.md')
|
||||||
|
@ -277,16 +277,17 @@ installMISPubuntuSupported () {
|
||||||
progress 4
|
progress 4
|
||||||
|
|
||||||
# Disable spinner
|
# Disable spinner
|
||||||
(kill $SPIN_PID 2>&1) >/dev/null
|
#(kill $SPIN_PID 2>&1) >/dev/null
|
||||||
|
|
||||||
# Check if /usr/local/src is writeable by target install user - functionLocation('generic/supportFunctions.md')
|
# Check if /usr/local/src is writeable by target install user - functionLocation('generic/supportFunctions.md')
|
||||||
[[ -n $CORE ]] || [[ -n $ALL ]] && checkUsrLocalSrc
|
[[ -n $CORE ]] || [[ -n $ALL ]] && checkUsrLocalSrc
|
||||||
progress 4
|
progress 4
|
||||||
|
|
||||||
spin &
|
## Resume spinner
|
||||||
SPIN_PID=$!
|
#spin &
|
||||||
disown
|
#SPIN_PID=$!
|
||||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
#disown
|
||||||
|
#trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||||
|
|
||||||
# Install misp-modules - functionLocation('generic/misp-modules-debian.md')
|
# Install misp-modules - functionLocation('generic/misp-modules-debian.md')
|
||||||
[[ -n $MODULES ]] || [[ -n $ALL ]] && mispmodules
|
[[ -n $MODULES ]] || [[ -n $ALL ]] && mispmodules
|
||||||
|
|
|
@ -75,7 +75,7 @@ sudo apt-get install postfix dialog -y
|
||||||
Once the system is installed you can perform the following steps.
|
Once the system is installed you can perform the following steps.
|
||||||
```bash
|
```bash
|
||||||
# <snippet-begin 0_installCoreDeps.sh>
|
# <snippet-begin 0_installCoreDeps.sh>
|
||||||
installCoredDeps () {
|
installCoreDeps () {
|
||||||
debug "Installing core dependencies"
|
debug "Installing core dependencies"
|
||||||
# Install the dependencies: (some might already be installed)
|
# Install the dependencies: (some might already be installed)
|
||||||
sudo apt-get install curl gcc git gpg-agent make python python3 openssl redis-server sudo vim zip virtualenv libfuzzy-dev -y
|
sudo apt-get install curl gcc git gpg-agent make python python3 openssl redis-server sudo vim zip virtualenv libfuzzy-dev -y
|
||||||
|
|
|
@ -269,7 +269,7 @@ setBaseURL () {
|
||||||
if [[ $(checkManufacturer) != "innotek GmbH" ]]; then
|
if [[ $(checkManufacturer) != "innotek GmbH" ]]; then
|
||||||
debug "We guess that this is a physical machine and cannot possibly guess what the MISP_BASEURL might be."
|
debug "We guess that this is a physical machine and cannot possibly guess what the MISP_BASEURL might be."
|
||||||
if [[ "$UNATTENDED" != "1" ]]; then
|
if [[ "$UNATTENDED" != "1" ]]; then
|
||||||
echo "You can now enter your own BASE_URL, if you wish to NOT do that, the BASE_URL will be empty, which will work, but ideally you configure it afterwards."
|
echo "You can now enter your own MISP_BASEURL, if you wish to NOT do that, the MISP_BASEURL will be empty, which will work, but ideally you configure it afterwards."
|
||||||
echo "Do you want to change it now? (y/n) "
|
echo "Do you want to change it now? (y/n) "
|
||||||
read ANSWER
|
read ANSWER
|
||||||
ANSWER=$(echo $ANSWER |tr [A-Z] [a-z])
|
ANSWER=$(echo $ANSWER |tr [A-Z] [a-z])
|
||||||
|
@ -576,14 +576,14 @@ theEnd () {
|
||||||
|
|
||||||
clear
|
clear
|
||||||
space
|
space
|
||||||
echo -e "${LBLUE}MISP${NC} Installed, access here: ${BASE_URL}"
|
echo -e "${LBLUE}MISP${NC} Installed, access here: ${MISP_BASEURL}"
|
||||||
echo
|
echo
|
||||||
echo "User: admin@admin.test"
|
echo "User: admin@admin.test"
|
||||||
echo "Password: admin"
|
echo "Password: admin"
|
||||||
space
|
space
|
||||||
[[ -n $DASHBOARD ]] || [[ -n $ALL ]] && echo -e "${LBLUE}MISP${NC} Dashboard, access here: ${BASE_URL}:8001"
|
[[ -n $DASHBOARD ]] || [[ -n $ALL ]] && echo -e "${LBLUE}MISP${NC} Dashboard, access here: ${MISP_BASEURL}:8001"
|
||||||
[[ -n $DASHBOARD ]] || [[ -n $ALL ]] && space
|
[[ -n $DASHBOARD ]] || [[ -n $ALL ]] && space
|
||||||
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo -e "viper-web installed, access here: ${BASE_URL}:8888"
|
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo -e "viper-web installed, access here: ${MISP_BASEURL}:8888"
|
||||||
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo -e "viper-cli configured with your ${LBLUE}MISP${NC} ${RED}Site Admin Auth Key${NC}"
|
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo -e "viper-cli configured with your ${LBLUE}MISP${NC} ${RED}Site Admin Auth Key${NC}"
|
||||||
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo
|
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo
|
||||||
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo "User: admin"
|
[[ -n $VIPER ]] || [[ -n $ALL ]] && echo "User: admin"
|
||||||
|
@ -607,6 +607,12 @@ theEnd () {
|
||||||
echo "sudo postfix reload"
|
echo "sudo postfix reload"
|
||||||
space
|
space
|
||||||
echo -e "Enjoy using ${LBLUE}MISP${NC}. For any issues see here: https://github.com/MISP/MISP/issues"
|
echo -e "Enjoy using ${LBLUE}MISP${NC}. For any issues see here: https://github.com/MISP/MISP/issues"
|
||||||
|
space
|
||||||
|
if [ $UNATTENDED == "1" ]; then
|
||||||
|
echo -e "${RED}Unattended install!${NC}"
|
||||||
|
echo -e "This means we guessed the Base URL, it might be wrong, please double check."
|
||||||
|
space
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$USER" != "$MISP_USER" ]]; then
|
if [[ "$USER" != "$MISP_USER" ]]; then
|
||||||
sudo su - ${MISP_USER}
|
sudo su - ${MISP_USER}
|
||||||
|
|
Loading…
Reference in New Issue