mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
take care single quotes if they are in the WEBPASSWD
This commit is contained in:
@@ -1137,15 +1137,16 @@ manager_global() {
|
|||||||
" airgap: False"\ >> "$global_pillar"
|
" airgap: False"\ >> "$global_pillar"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
WEBPASSWD1CLEAN=$(echo $WEBPASSWD1|sed -e "s/'/''/g")
|
||||||
# Check if TheHive is enabled. If so, add creds and other details
|
# Check if TheHive is enabled. If so, add creds and other details
|
||||||
if [[ "$THEHIVE" == "1" ]]; then
|
if [[ "$THEHIVE" == "1" ]]; then
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" hiveuser: $WEBUSER"\
|
" hiveuser: $WEBUSER"\
|
||||||
" hivepassword: '$WEBPASSWD1'"\
|
" hivepassword: '$WEBPASSWD1CLEAN'"\
|
||||||
" hivekey: $HIVEKEY"\
|
" hivekey: $HIVEKEY"\
|
||||||
" hiveplaysecret: $HIVEPLAYSECRET"\
|
" hiveplaysecret: $HIVEPLAYSECRET"\
|
||||||
" cortexuser: $WEBUSER"\
|
" cortexuser: $WEBUSER"\
|
||||||
" cortexpassword: '$WEBPASSWD1'"\
|
" cortexpassword: '$WEBPASSWD1CLEAN'"\
|
||||||
" cortexkey: $CORTEXKEY"\
|
" cortexkey: $CORTEXKEY"\
|
||||||
" cortexorgname: SecurityOnion"\
|
" cortexorgname: SecurityOnion"\
|
||||||
" cortexorguser: soadmin"\
|
" cortexorguser: soadmin"\
|
||||||
|
|||||||
Reference in New Issue
Block a user