From 5553cc8b249e7518275a780dad960a96a3697472 Mon Sep 17 00:00:00 2001 From: Stuart MacDonald <32204841+labkey-stuartm@users.noreply.github.com> Date: Fri, 22 Feb 2019 07:29:06 -0800 Subject: [PATCH] add exception for ec2-user --- init_google_authenticator.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init_google_authenticator.sh b/init_google_authenticator.sh index 4b05a7e..1da71f5 100644 --- a/init_google_authenticator.sh +++ b/init_google_authenticator.sh @@ -4,8 +4,8 @@ # Owner = root # group = root -# initialize google authenticator only if its not already configured and the user is not root -if [ ! -e ~/.google_authenticator ] && [ "$USER" != "root" ]; then +# initialize google authenticator only if its not already configured and the user is not root or ec2-user +if [ ! -e ~/.google_authenticator ] && [ "$USER" != "root" ] && [ "$USER" != "ec2-user" ]; then echo -e " -----------------------------------------------------------------------------------------\n" echo -e " ----- Initializing google-authenticator -----\n" echo -e " -----------------------------------------------------------------------------------------\n"