mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 07:44:29 +02:00
restorecon the correct directory
if using different path for authorized_keys file SSH-Copy-ID-Upstream: 791a3df47b48412c726bff6f7b1d190721e65d51
This commit is contained in:
parent
9beeab8a37
commit
333e25f7bc
@ -256,7 +256,7 @@ installkeys_sh() {
|
|||||||
cat >> ${AUTH_KEY_FILE} ||
|
cat >> ${AUTH_KEY_FILE} ||
|
||||||
exit 1;
|
exit 1;
|
||||||
if type restorecon >/dev/null 2>&1; then
|
if type restorecon >/dev/null 2>&1; then
|
||||||
restorecon -F .ssh ${AUTH_KEY_FILE};
|
restorecon -F $(dirname "${AUTH_KEY_FILE}") ${AUTH_KEY_FILE};
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user