From 058935196cdbedab6b95c0cff38e0d7f569ea0d2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 14 Oct 2019 08:21:18 +0200 Subject: [PATCH] extra-file: drop restorecon from sshd-host-keygen There is no restorecon on core (thanks to Maciej). Also fix whitespace in the following line. --- extra-files/usr/lib/snapd/sshd-host-keygen | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 }