Skip to content

Commit

Permalink
Fix SETUP_KEYS_PATH not available in called script
Browse files Browse the repository at this point in the history
  • Loading branch information
loranmutafov committed Feb 26, 2023
1 parent 2e61149 commit 75f6355
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bastion
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env sh

SETUP_KEYS_PATH="${SETUP_KEYS_PATH:=/etc/bastion/ssh-keys}"
export SETUP_KEYS_PATH="${SETUP_KEYS_PATH:=/etc/bastion/ssh-keys}"
if [ -f "$SETUP_KEYS_PATH" ] || [ -L "$SETUP_KEYS_PATH" ]; then
./setup-keys.sh
fi
unset SETUP_KEYS_PATH

HOST_KEYS_PATH_PREFIX="${HOST_KEYS_PATH_PREFIX:=/}"
HOST_KEYS_PATH="${HOST_KEYS_PATH:=/etc/ssh}"
Expand Down

0 comments on commit 75f6355

Please sign in to comment.