From 544d8ae78221ce603aad719ced275649a5ffd60d Mon Sep 17 00:00:00 2001 From: Greg Price Date: Tue, 30 Dec 2008 19:52:56 -0500 Subject: [PATCH] invirt-cache-acls: get afs cell list from invirt-config svn path=/trunk/packages/invirt-web/; revision=1949 --- config.todo | 1 - debian/changelog | 2 +- invirt-cache-acls | 9 ++++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/config.todo b/config.todo index b95a341..a1f921c 100644 --- a/config.todo +++ b/config.todo @@ -4,7 +4,6 @@ code/Makefile: base URI # may differ dev/prod? files/etc/apache2/sites-available/default: assumes trac files/etc/init.d/apache2.invirt: afs cell (for svn) -invirt-cache-acls: aklog athena sipb code/templates/error.tmpl: xvm@mit.edu code/templates/help.tmpl: assumes trac code/templates/list.tmpl: XVM diff --git a/debian/changelog b/debian/changelog index f7ad007..3f0d2da 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,7 +6,7 @@ invirt-web (0.0.16) unstable; urgency=low * make initscript stop command not leave apache2 processes lying around (so that restart works) - -- Greg Price Tue, 30 Dec 2008 17:31:48 -0500 + -- Greg Price Tue, 30 Dec 2008 17:43:41 -0500 invirt-web (0.0.15) unstable; urgency=low diff --git a/invirt-cache-acls b/invirt-cache-acls index 19673a7..b099eca 100755 --- a/invirt-cache-acls +++ b/invirt-cache-acls @@ -1,4 +1,11 @@ #!/bin/sh +cells () { + for i in $(invirt-getconf -l authz); do + if [ afs = "$(invirt-getconf authz.$i.type)" ]; then + invirt-getconf authz.$i.cell + fi + done +} kinit -k -t /etc/invirt/keytab daemon/$(hostname -f) -aklog athena sipb +aklog $(cells) python /var/www/invirt-web/cache_acls.py -- 1.7.9.5