We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df6ec7 commit a1c05b8Copy full SHA for a1c05b8
src/etc/s6-overlay/scripts/generate-ssh-keys
@@ -5,7 +5,7 @@ if [ $DEBUG_MODE == true ]; then
5
fi
6
7
# Check if SSH host keys are missing
8
-if ! [ -e $SSH_HOST_KEY_DIR/ssh_host_* ]; then
+if [ $(find /etc/ssh/ssh_host_keys/ -maxdepth 1 -name "ssh_host_*" | wc -l) -ne 3 ]; then
9
echo "🏃♂️ Generating SSH keys for you..."
10
dpkg-reconfigure openssh-server
11
# Check if the host directory exists. Create it if needed
0 commit comments