5 # Update node package repository metadata and sign packages
7 # Mark Huang <mlhuang@cs.princeton.edu>
8 # Copyright (C) 2006 The Trustees of Princeton University
10 # $Id: packages,v 1.2 2006/05/18 22:58:20 mlhuang Exp $
13 # Source function library and configuration
14 . /etc/plc.d/functions
15 . /etc/planetlab/plc_config
22 MESSAGE=$"Signing node packages"
26 for repository in /var/www/html/install-rpms/* ; do
27 # Sign all RPMS. setsid detaches rpm from the terminal,
28 # allowing the (hopefully blank) GPG password to be
29 # entered from stdin instead of /dev/tty.
31 for package in $repository/*.rpm ; do
32 packages="$packages $package"
34 if [ -n "$packages" ] ; then
36 --define "_signature gpg" \
37 --define "_gpg_path /etc/planetlab" \
38 --define "_gpg_name $PLC_MAIL_SUPPORT_ADDRESS" \
43 # Update yum metadata. createrepo sometimes leaves behind
44 # an .olddata file accidentally.
45 rm -rf $repository/.olddata
48 createrepo -g yumgroups.xml $repository