mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-25 03:12:10 +00:00
use $AUTH_KEY_DIR, now that we have it
since that was a change made since jjelen's commit was written also, quote the variables SSH-Copy-ID-Upstream: 588cd8e5cbf95f3443d92b9ab27c5d73ceaf6616
This commit is contained in:
parent
333e25f7bc
commit
3594b3b015
@ -252,11 +252,11 @@ installkeys_sh() {
|
||||
cd;
|
||||
umask 077;
|
||||
mkdir -p "${AUTH_KEY_DIR}" &&
|
||||
{ [ -z \`tail -1c ${AUTH_KEY_FILE} 2>/dev/null\` ] || echo >> ${AUTH_KEY_FILE}; } &&
|
||||
cat >> ${AUTH_KEY_FILE} ||
|
||||
{ [ -z \`tail -1c ${AUTH_KEY_FILE} 2>/dev/null\` ] || echo >> "${AUTH_KEY_FILE}"; } &&
|
||||
cat >> "${AUTH_KEY_FILE}" ||
|
||||
exit 1;
|
||||
if type restorecon >/dev/null 2>&1; then
|
||||
restorecon -F $(dirname "${AUTH_KEY_FILE}") ${AUTH_KEY_FILE};
|
||||
restorecon -F "${AUTH_KEY_DIR}" "${AUTH_KEY_FILE}";
|
||||
fi
|
||||
EOF
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user