Skip to content

Commit

Permalink
add exception for ec2-user
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-stuartm committed Feb 22, 2019
1 parent 99f77f0 commit 5553cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init_google_authenticator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5553cc8

Please sign in to comment.