mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Set INSTALLUSERNAME to the user running the script
Resolves #2243
This commit is contained in:
@@ -1321,7 +1321,7 @@ elasticsearch_pillar() {
|
||||
|
||||
parse_install_username() {
|
||||
# parse out the install username so things copy correctly
|
||||
INSTALLUSERNAME=$(pwd | sed -E 's/\// /g' | awk '{ print $2 }')
|
||||
INSTALLUSERNAME=${SUDO_USER:-${USER}}
|
||||
}
|
||||
|
||||
patch_pillar() {
|
||||
|
||||
Reference in New Issue
Block a user