On Mantic this would throw out an error

Failed to restart sshd.service: Unit sshd.service not found
This commit is contained in:
Igor Pecovnik 2023-11-24 21:00:43 +01:00 committed by Igor
parent 0e0abae78e
commit 64037fb9ba

View File

@ -59,7 +59,7 @@ case "$1" in
rm -f /etc/ssh/ssh_host*
read entropy_before </proc/sys/kernel/random/entropy_avail
dpkg-reconfigure openssh-server >/dev/null 2>&1
service sshd restart
service ssh restart
read entropy_after </proc/sys/kernel/random/entropy_avail
echo -e "\n### [firstrun] Recreated SSH keys (entropy: ${entropy_before} ${entropy_after})" >>${Log}