mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00
fix SSH renew bookworm
This commit is contained in:
parent
3f837a2fc2
commit
d73191099a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user