Skip to content

Commit

Permalink
fixes widdix#111
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwittig committed Jan 17, 2018
1 parent c324fc1 commit 8477494
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions authorized_keys_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ if [ -z "$1" ]; then
exit 1
fi

# check if AWS CLI exists
if ! which aws; then
echo "aws executable not found - exiting!"
exit 1
fi

# source configuration if it exists
[ -f /etc/aws-ec2-ssh.conf ] && . /etc/aws-ec2-ssh.conf

Expand Down
6 changes: 6 additions & 0 deletions import_users.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash -e

# check if AWS CLI exists
if ! which aws; then
echo "aws executable not found - exiting!"
exit 1
fi

# source configuration if it exists
[ -f /etc/aws-ec2-ssh.conf ] && . /etc/aws-ec2-ssh.conf

Expand Down

0 comments on commit 8477494

Please sign in to comment.