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.1 2006/05/18 17:36:39 mlhuang Exp $
13 # Source function library and configuration
14 . /etc/plc.d/functions
15 . /etc/planetlab/plc_config
19 MESSAGE=$"Signing node packages"
23 for repository in /var/www/html/install-rpms/* ; do
24 # Sign all RPMS. setsid detaches rpm from the terminal,
25 # allowing the (hopefully blank) GPG password to be
26 # entered from stdin instead of /dev/tty.
28 for package in $repository/*.rpm ; do
29 packages="$packages $package"
31 if [ -n "$packages" ] ; then
33 --define "_signature gpg" \
34 --define "_gpg_path /etc/planetlab" \
35 --define "_gpg_name $PLC_MAIL_SUPPORT_ADDRESS" \
40 # Update yum metadata. createrepo sometimes leaves behind
41 # an .olddata file accidentally.
42 rm -rf $repository/.olddata
45 createrepo -g yumgroups.xml $repository