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} ||
|
||||
exit 1;
|
||||
if type restorecon >/dev/null 2>&1; then
|
||||
restorecon -F .ssh ${AUTH_KEY_FILE};
|
||||
restorecon -F $(dirname "${AUTH_KEY_FILE}") ${AUTH_KEY_FILE};
|
||||
fi
|
||||
EOF
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue