LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File createrepo-cloud-ptf of Package crowbar (Project home:seife:sap-oc)

#!/bin/sh

for CLOUD_PTF in /srv/tftpboot/suse-1*/*/repos/PTF; do
  if test ! -d "${CLOUD_PTF}"; then
    echo "Directory ${CLOUD_PTF} does not exist."
    exit 1
  fi

  createrepo "${CLOUD_PTF}"

  if test -n "$(gpg --list-secret-keys 2> /dev/null)"; then
    gpg -a --detach-sign --yes "${CLOUD_PTF}/repodata/repomd.xml"
    gpg -a --export > "${CLOUD_PTF}/repodata/repomd.xml.key"
  fi
done