ssh is a directory (#2807)

This commit is contained in:
arno 2021-12-17 22:45:01 +01:00 committed by GitHub
parent 9ada5b912c
commit 72bfa88861
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ if [ "$1" = "restore" ]; then
if [ -d "${DEFAULTBACKUPBASEDIR}/ssh" ]; then
# restore sshd host keys
sudo rm /etc/ssh/*
sudo rm -r /etc/ssh/*
sudo cp -r $DEFAULTBACKUPBASEDIR/ssh/* /etc/ssh/
sudo chown -R root:root /etc/ssh
sudo dpkg-reconfigure openssh-server