projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yet another cleaner bugfix.
[bluesky.git]
/
microbench
/
setup
/
cleanup-proxy
diff --git
a/microbench/setup/cleanup-proxy
b/microbench/setup/cleanup-proxy
index
80fd963
..
3fd185e
100755
(executable)
--- a/
microbench/setup/cleanup-proxy
+++ b/
microbench/setup/cleanup-proxy
@@
-2,7
+2,21
@@
#
# Start up the NFS server.
#
# Start up the NFS server.
-. /scratch/aws-keys
+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
-rm -rf /export/journal
-/scratch/bluesky.git/microbench/setup/s3-cleanup.py
+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
+fi