X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fpackages;h=2046fadb7968e5b683d14f96b137ffa4b6d2908a;hb=8499f49fd5bd1c749aed0e0c03de21c67c3471a8;hp=5c59f30e760715a87d9160183275fdfe07937113;hpb=d2f4323d688dc3823f8e9726a0ace3d170785204;p=bootstrapfs.git diff --git a/plc.d/packages b/plc.d/packages index 5c59f30..2046fad 100755 --- a/plc.d/packages +++ b/plc.d/packages @@ -122,7 +122,7 @@ case "$1" in # consider all subdirs in install-rpms by default, except the slice repos # use find instead of ls - for the corner case where the dir. is empty # (thanks Thomas Dreibholz for the heads up) - repositories=$(find /var/www/html/install-rpms -maxdepth 1 -mindepth 1 -type d \! -name 'slice-*' >& /dev/null) + repositories=$(find /var/www/html/install-rpms -maxdepth 1 -mindepth 1 -type d \! -name 'slice-*' 2> /dev/null) fi # filter out PRESERVE'd repos @@ -230,6 +230,22 @@ case "$1" in result "$MESSAGE" ;; + index) + # just rerun createrepo + shift + if [[ -z "$@" ]] ; then + # use all subdirs in install-rpms by default + repositories=/var/www/html/install-rpms/* + else + # else use argv + repositories=$@ + fi + + for repository in $repositories ; do + echo ============================== running createrepo in $repository + createrepo -g yumgroups.xml $repository + done + ;; clean) shift if [[ -z "$@" ]] ; then