[fix] Set INSTALLUSERNAME to the user running the script

Resolves #2243
This commit is contained in:
William Wernert
2020-12-07 14:16:06 -05:00
parent 4363b082bb
commit 6fc3232637

View File

@@ -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() {