jgstew / tools

various scripts and tools
MIT License
23 stars 14 forks source link

Record user running the script with $SUDO_USER or similar (install_bigfix) #17

Open jgstew opened 8 years ago

jgstew commented 8 years ago

https://github.com/jgstew/tools/commit/ed84f79e4ab822f4a71ae5babc48e8ac86f115d0#diff-5352e955d46d92a3a800ff8aa617565c

I added this to the code, but it seems to not work correctly within docker containers, or perhaps not at all. Haven't had it work yet on any system.

jgstew commented 7 years ago

I just checked this, still not working for docker.

The output is empty: _BESClient_InstallTime_User=

This may be because there is no sudo user in the case of docker.