[ Cmii ] [ Octopus ] - fix a lot of bugs
This commit is contained in:
20
agent-go/shell/base-minio-sync.sh
Normal file
20
agent-go/shell/base-minio-sync.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 设置local和tc-sh的别名
|
||||
set_minio_endpoint_alias() {
|
||||
mc alias set local http://localhost:9000 cmii B#923fC7mk
|
||||
mc alias set tc-sh http://42.192.52.227:9000/ cmii B#923fC7mk
|
||||
}
|
||||
|
||||
create_bucket_in_tc_sh() {
|
||||
mc mb tc-sh/octopus
|
||||
mc anonymous set public tc-sh/octopus
|
||||
}
|
||||
|
||||
delete_prune_tc_sh_bucket() {
|
||||
mc rm --recursive --force tc-sh/octopus/
|
||||
}
|
||||
|
||||
set_minio_endpoint_alias
|
||||
|
||||
mc cp -r local/octopus/ tc-sh/octopus/
|
||||
Reference in New Issue
Block a user