|
Lines 270-278
Link Here
|
| 270 |
# Assuming that the remote host treats ~/.ssh/authorized_keys as one might expect |
270 |
# Assuming that the remote host treats ~/.ssh/authorized_keys as one might expect |
| 271 |
populate_new_ids 0 |
271 |
populate_new_ids 0 |
| 272 |
[ "$DRY_RUN" ] || printf '%s\n' "$NEW_IDS" | ssh "$@" " |
272 |
[ "$DRY_RUN" ] || printf '%s\n' "$NEW_IDS" | ssh "$@" " |
| 273 |
umask 077 ; |
273 |
sh -c 'umask 077 ; |
| 274 |
mkdir -p .ssh && cat >> .ssh/authorized_keys || exit 1 ; |
274 |
mkdir -p .ssh && cat >> .ssh/authorized_keys || exit 1 ; |
| 275 |
if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi" \ |
275 |
if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi'" \ |
| 276 |
|| exit 1 |
276 |
|| exit 1 |
| 277 |
ADDED=$(printf '%s\n' "$NEW_IDS" | wc -l) |
277 |
ADDED=$(printf '%s\n' "$NEW_IDS" | wc -l) |
| 278 |
;; |
278 |
;; |