diff --git a/extra-files/usr/lib/snapd/sshd-host-keygen b/extra-files/usr/lib/snapd/sshd-host-keygen index e150f4c..d1b9fe7 100755 --- a/extra-files/usr/lib/snapd/sshd-host-keygen +++ b/extra-files/usr/lib/snapd/sshd-host-keygen @@ -42,11 +42,8 @@ create_key() { printf "%s" "$msg" ssh-keygen -q -f "$file" -N '' "$@" echo - if which restorecon >/dev/null 2>&1; then - restorecon "$file" "$file.pub" - fi ssh-keygen -l -f "$file.pub" - sync + sync fi }