publickey.install 289 B

1234567
  1. if [[ -e "${INSTALL_DIR}/${configPath}/rpmnew/pub.key" ]]; then
  2. cp ${INSTALL_DIR}/${configPath}/rpmnew/pub.key ${homePath}/pub.key
  3. chown ${user}:${user} ${homePath}/pub.key
  4. sudo -H -u ${user} bash -c "gpg --import ${homePath}/pub.key" > /dev/null 2>&1
  5. rm -f ${homePath}/pub.key
  6. fi