Merge pull request #7268 from SteveClement/guides

chg: [doc] Added details on MISPvars
pull/7269/head
Steve Clement 2021-03-30 10:46:07 +09:00 committed by GitHub
commit 74539589fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,16 @@
#### MISP configuration variables
If you are doing a manual install, copy and pasting from this document, please do the following before starting:
```bash
eval "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/docs/generic/globalVariables.md | grep -v \`\`\`)"
MISPvars
```
!!! notice
Do NOT leave your session after this mid-install as some initial passwords have been generated and thus would be lost.
Consider using a mux like [screen or tmux](https://superuser.com/questions/423310/byobu-vs-gnu-screen-vs-tmux-usefulness-and-transferability-of-skills).
```bash
# <snippet-begin 0_global-vars.sh>
# $ eval "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/docs/generic/globalVariables.md | grep -v \`\`\`)"
@ -19,6 +30,7 @@ MISPvars () {
# The web server user
# RHEL/CentOS
if [[ -f "/etc/redhat-release" ]]; then
SE_LINUX=$(sestatus -v -b |grep "^SELinux status"| grep enabled ; echo $?)
WWW_USER="apache"
SUDO_WWW="sudo -H -u ${WWW_USER} "
# Debian flavoured