refactor(cli): 优化脚本

This commit is contained in:
2024-02-26 19:04:37 +08:00
parent 9e6e8fbc61
commit 5ecc3daac0
2 changed files with 17 additions and 10 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/bash
root_path=/apps/zone_scfp/hudi/cloud
jars_path=/data/datalake/jars
jdk_path=/opt/jdk8u252-b09/bin/java
arguments=$@
curl ftp://yyy:QeY\!68\)4nH1@132.121.122.15:2222/service-cli-runner-1.0.0-SNAPSHOT.jar -o ${root_path}/service-cli-runner.jar
${jdk_path} -jar ${root_path}/service-cli-runner.jar --spring.profiles.active=b9 $arguments
chmod +x *.sh
curl ftp://yyy:QeY\!68\)4nH1@132.121.122.15:2222/service-cli-runner-1.0.0-SNAPSHOT.jar -o ${jars_path}/service-cli-runner.jar
${jdk_path} -jar ${jars_path}/service-cli-runner.jar --spring.profiles.active=b12 $arguments
chmod +x cloud/*.sh