Use something that works when the user isn't in /etc/passwd for running
in a container.
| ... | ... |
@@ -34,7 +34,7 @@ |
| 34 | 34 |
function os::start::configure_server() {
|
| 35 | 35 |
local version="${1:-}"
|
| 36 | 36 |
local current_user |
| 37 |
- current_user="$( whoami )" |
|
| 37 |
+ current_user="$( id -u )" |
|
| 38 | 38 |
|
| 39 | 39 |
os::start::internal::create_master_certs "${version}"
|
| 40 | 40 |
os::start::internal::configure_node "${version}"
|