Skip to content

Commit 4a63b32

Browse files
committed
Fix the entrypoint scripts if no SSH keys exists
1 parent 37c8c6e commit 4a63b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55

66
# The /tmp/.ssh directory is used to pass SSH keys to the container. If it is empty
77
# or does not exist, no SSH keys will be imported.
8-
if [ -d "/tmp/.ssh" ] && [ "$(ls -A /tmp/.ssh 2>/dev/null)" ]; then
8+
if [ -d "/tmp/.ssh" ] && [ "$(ls -A /tmp/.ssh/id_* 2>/dev/null)" ]; then
99

1010
# Copy all SSH keys from the temporary directory to the root's SSH directory.
1111
cp -R /tmp/.ssh/id_* /root/.ssh/

0 commit comments

Comments
 (0)