Skip to content

Commit

Permalink
mod sh -> bash (Ubuntu's default sh is dash)
Browse files Browse the repository at this point in the history
  • Loading branch information
szxw committed Nov 11, 2016
1 parent 6ebf352 commit c7bedea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ $(FUSE_OBJ): %.o: %.cc
%.pb.h %.pb.cc: %.proto
$(PROTOC) --proto_path=./src/proto/ --proto_path=/usr/local/include --cpp_out=./src/proto/ $<
src/version.cc: FORCE
sh build_version.sh
bash build_version.sh

.PHONY: FORCE
FORCE:
Expand Down
4 changes: 2 additions & 2 deletions ft_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ cur=`pwd`
set -e

make install;
make test; cd sandbox; sh clear.sh; sh deploy.sh; sh start_bfs.sh;
cd ../tera; make clean; make; ./bfs_test; cd ../sandbox; sh clear.sh
make test; cd sandbox; bash clear.sh; bash deploy.sh; bash start_bfs.sh;
cd ../tera; make clean; make; ./bfs_test; cd ../sandbox; bash clear.sh
12 changes: 6 additions & 6 deletions sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
A toy environment for testing.

## Deployment
`sh deploy.sh`
`bash deploy.sh`
This script will prepare the environment to run Nameserver and Chunkservers.

## Launch
`sh deploy.sh`
`bash deploy.sh`
This script will launch Nameserver and Chunkservers to put up a BFS cluster(only it is not a real cluster, but a simulation on one server). Logs will be saved under nameserver0/log and chunkserver[id]/log.

## Testing
Expand All @@ -24,16 +24,16 @@ Download a file to local fs:

## Cleanup
To tear down the cluster and cleanup the environment:
`sh clear.sh`
`bash clear.sh`

# Sandbox
用于DFS的单机部署测试。
## 部署
`sh deploy.sh `
`bash deploy.sh `
会创建Nameserver和Chunkserver运行环境

## 启动
`sh start_bfs.sh `
`bash start_bfs.sh `
启动Nameserver与多个Chunkserver,形成一个单机(模拟)集群。
日志会被打印在nameserver0/log和chunkserver[id]/log

Expand All @@ -51,6 +51,6 @@ To tear down the cluster and cleanup the environment:
`./bfs_client get /chunkserver ./file_from_bfs`

## 清理
`sh clear.sh`
`bash clear.sh`


0 comments on commit c7bedea

Please sign in to comment.