From fb775fef3dc038b9cef46288de939f2bda06dbfa Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Thu, 21 Jul 2011 16:22:08 +0100 Subject: [PATCH] bin/run-mirrors: Use id(1) to find current user name. Organization: Straylight/Edgeware From: Mark Wooding USER isn't set by sudo(8) -- at least in my configuration. --- bin/run-mirrors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run-mirrors b/bin/run-mirrors index ec43009..c69b903 100755 --- a/bin/run-mirrors +++ b/bin/run-mirrors @@ -3,7 +3,7 @@ set -e ## Make sure we're running as the right user. -case "$USER" in +case $(id -un) in mirror) ;; *) exec userv -fstdin=/dev/null mirror run ;; esac -- [mdw]