X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=microbench%2Fsetup%2Fcleanup-proxy;h=c9a8c86d4bc24415df21836a3aa0bba99e7bb071;hb=215676f70bd33225aa70cbc9143e7d4b5ceb77d2;hp=80fd9634690ba6e9ca643093397102b2737feaba;hpb=41b4c13fbf04abfb4e9afc7fefb4f76d9912d6e4;p=bluesky.git diff --git a/microbench/setup/cleanup-proxy b/microbench/setup/cleanup-proxy index 80fd963..c9a8c86 100755 --- a/microbench/setup/cleanup-proxy +++ b/microbench/setup/cleanup-proxy @@ -4,5 +4,22 @@ . /scratch/aws-keys -rm -rf /export/journal -/scratch/bluesky.git/microbench/setup/s3-cleanup.py +export BLUESKY_TARGET=s3 +# Export any environment variables specified on the command line +for e in "$@"; do + echo "$e" 1>&2 + if echo "$e" | grep = >/dev/null; then + eval "$e" + export ${e%=*} + fi +done + +if [ "$BLUESKY_TARGET" = "native" ]; then + /etc/init.d/nfs-kernel-server stop + umount /export + mkfs.ext3 -F /dev/sdb + mount /export +else + rm -rf /export/journal + /scratch/bluesky.git/microbench/setup/s3-cleanup.py +fi