Red Hat SATELLITE 5.3.0 RELEASE NOTES Informações Técnicas Página 71

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 199
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 70
if [[ -x varDefs.sh ]] ; then
source varDefs.sh
elif [[ -x /root/varDefs.sh ]] ; then
source /root/varDefs.sh
elif [[ -x /root/resources/varDefs.sh ]] ; then
source /root/resources/varDefs.sh
elif [[ -x /root/distro/resources/varDefs.sh ]] ; then
source /root/distro/resources/varDefs.sh
else
echo "didn't find a varDefs.sh file"
fi
#Generate a key and sign the package
/root/resources/AppPGPKey.sh
# Create our Application channel
/root/resources/createAppSatChannel.py
# put rpm file locally on satellite
mkdir -p /var/satellite/mychannels/ourapps
#Figure out the package name
JFILE=`ls /root/resources/javaApp-*.noarch.rpm`
JNUM=`echo $JFILE | wc -w`
if [[ $JNUM -eq 0 ]]
then
echo "No javaApp rpm!"
exit -2
elif [[ $JNUM -gt 1 ]]
then
echo "Too many javaApp RPMs!"
exit -3
fi
# copy the file to a known area on the satellite
/bin/cp ${JFILE} /var/satellite/mychannels/ourapps
# Push the rpm into satellite
rhnpush -v -courapps --server=http://localhost/APP
--dir=/var/satellite/mychannels/ourapps -u ${SAT_TENANT_USER} -p $
{SAT_TENANT_PW}
AppPGPKey.sh does the following:
generates GPG key
prepares ~/.rpmmacros for signing packages
signs the RPM
makes the public key available
#!/bin/bash
71 www.redhat.com
Vista de página 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 198 199

Comentários a estes Manuais

Sem comentários