fix SSH renew bookworm

This commit is contained in:
rootzoll 2023-12-08 22:45:33 +01:00
parent 3f837a2fc2
commit d73191099a

View file

@ -81,7 +81,7 @@ if [ "$1" = "checkrepair" ]; then
# check if sshd host keys are missing / need generation
countKeyFiles=$(ls -la /etc/ssh/ssh_host_* 2>/dev/null | grep -c "/etc/ssh/ssh_host")
echo "# countKeyFiles(${countKeyFiles})"
if [ ${countKeyFiles} -lt 8 ]; then
if [ ${countKeyFiles} -lt 6 ]; then
echo "# DETECTED: MISSING SSHD KEYFILES --> Generating new ones"
/home/admin/config.scripts/blitz.ssh.sh renew
fi