Skip to content

Commit

Permalink
Merge pull request #7 from jan-brinkmann/Check-for-all-necessary-vari…
Browse files Browse the repository at this point in the history
…ables

Check for all necessary variables.
  • Loading branch information
jan-brinkmann authored Jan 14, 2022
2 parents 208389a + 6e89a8c commit f07d0df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ if [ -z $ROTATION_SCHEME ]; then
fi
fi

# Set up archive directory
if [ -f /root/.ssh/id_rsa ]; then
# Set up archive
if [ -f /root/.ssh/id_rsa ] && [ ! -z $SSH_USER ] && [ ! -z $SSH_HOST ] && [ ! -z $SSH_ARCHIVE ]; then
ARCHIVE="$SSH_USER@$SSH_HOST:$SSH_ARCHIVE"
elif [ -d /archive ]; then
ARCHIVE="/archive"
Expand Down

0 comments on commit f07d0df

Please sign in to comment.