[rear-devel] [rear/rear] 19eea3: Update 501_check_ssh_keys.sh

Johannes Meixner noreply at github.com
Mon Jun 8 16:32:32 CEST 2020

  Branch: refs/heads/also_parse_SSH_Include_files
  Home:   https://github.com/rear/rear
  Commit: 19eea34d3e9eb080009de9df7ec1e98d0b01ed61
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2020-06-08 (Mon, 08 Jun 2020)

  Changed paths:
    M usr/share/rear/build/default/501_check_ssh_keys.sh

  Log Message:
  Update 501_check_ssh_keys.sh

Use a './' prefix for './$ROOT_HOME_DIR' in sed ... -e "s#~#./$ROOT_HOME_DIR#g"
to ensure that all paths are relative paths inside the recovery system and
to let the sed result match root_key_files=( ... ./$ROOT_HOME_DIR/.ssh/id_* )
so that duplicates can be filtered out by key_files=( $( echo ... | sort -u )
cf. https://github.com/rear/rear/pull/2422#issuecomment-640617360

More information about the rear-devel mailing list