Browse code

Do not use whoami inside of start scripts

Use something that works when the user isn't in /etc/passwd for running
in a container.

Clayton Coleman authored on 2016/11/16 14:45:02
Showing 1 changed files
... ...
@@ -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}"