From c9d34073f28bb34efd589cf35e237e4c70c47999 Mon Sep 17 00:00:00 2001 From: Mark Wolters Date: Fri, 19 Oct 2018 11:57:26 -0700 Subject: [PATCH] Changed prepare-log-file to take args for setting uid/gid for log files. --- cluster/gce/gci/configure-helper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index 0a4a410acb..7ee0986533 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -1273,10 +1273,12 @@ EOF # Create the log file and set its properties. # # $1 is the file to create. +# $2: the log owner uid to set for the log file. +# $3: the log owner gid to set for the log file. function prepare-log-file { touch $1 chmod 644 $1 - chown "${LOG_OWNER_USER:-root}":"${LOG_OWNER_GROUP:-root}" $1 + chown "${2:-${LOG_OWNER_USER:-root}}":"${3:-${LOG_OWNER_GROUP:-root}}" $1 } # Prepares parameters for kube-proxy manifest.