mirror of git://anongit.mindrot.org/openssh.git
tidy the $INSTALLKEY_SH code layout a little
SSH-Copy-ID-Upstream: 78178aa5017222773e4c23d9001391eeaeca8983
This commit is contained in:
parent
983e05ef3b
commit
476ac8e9d3
|
@ -252,9 +252,9 @@ installkeys_sh() {
|
||||||
cd;
|
cd;
|
||||||
umask 077;
|
umask 077;
|
||||||
mkdir -p "${AUTH_KEY_DIR}" &&
|
mkdir -p "${AUTH_KEY_DIR}" &&
|
||||||
{ [ -z \`tail -1c ${AUTH_KEY_FILE} 2>/dev/null\` ] || echo >> "${AUTH_KEY_FILE}" || exit 1; } &&
|
{ [ -z \`tail -1c ${AUTH_KEY_FILE} 2>/dev/null\` ] ||
|
||||||
cat >> "${AUTH_KEY_FILE}" ||
|
echo >> "${AUTH_KEY_FILE}" || exit 1; } &&
|
||||||
exit 1;
|
cat >> "${AUTH_KEY_FILE}" || exit 1;
|
||||||
if type restorecon >/dev/null 2>&1; then
|
if type restorecon >/dev/null 2>&1; then
|
||||||
restorecon -F "${AUTH_KEY_DIR}" "${AUTH_KEY_FILE}";
|
restorecon -F "${AUTH_KEY_DIR}" "${AUTH_KEY_FILE}";
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue