feat(configuration): 增加yarn集群的相关配置
This commit is contained in:
18
bin/upload-config.sh
Executable file
18
bin/upload-config.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
root_path=$(dirname $(cd $(dirname $0); pwd))
|
||||
|
||||
clusters=(
|
||||
b2b12
|
||||
b9b9
|
||||
)
|
||||
|
||||
for cluster in ${clusters[*]};
|
||||
do
|
||||
cd ${root_path}/config/${cluster}
|
||||
echo Upload config ${cluster}
|
||||
tar_path=/tmp/${cluster}.tar.gz
|
||||
tar -czvf ${tar_path} *
|
||||
ytp-transfer ${tar_path}
|
||||
rm -rf ${tar_path}
|
||||
done
|
||||
Reference in New Issue
Block a user