|
Lines 271-278
Link Here
|
| 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 |
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 |
;; |