diff --git a/bin/build-patch.sh b/bin/build-patch.sh new file mode 100755 index 0000000..c446f56 --- /dev/null +++ b/bin/build-patch.sh @@ -0,0 +1,6 @@ +#!/bin/bash +root_path=$(dirname $(cd $(dirname $0);pwd)) +source $root_path/bin/library.sh +deploy service-common service-dependencies service-configuration service-forest +package utils/patch +upload $root_path/utils/patch/target/patch-1.0.0-SNAPSHOT.jar diff --git a/bin/library.sh b/bin/library.sh index 0d5e96a..d584280 100755 --- a/bin/library.sh +++ b/bin/library.sh @@ -12,7 +12,7 @@ ytp_url=ftp://$ytp_username:$ytp_password@132.121.122.15:2222 upload_username=AxhEbscwsJDbYMH2 upload_password=cYxg3b4PtWoVD5SjFayWxtnSVsjzRsg4 -upload_url=http://$upload_username:$upload_password@132.126.207.124:36800/file/upload +upload_url=http://$upload_username:$upload_password@132.126.207.124:36800 root_path=$(dirname $(cd $(dirname $0);pwd)) @@ -21,7 +21,7 @@ function upload() { file_name=$(basename $source_file_path) echo "↪ Source md5: $(md5sum $source_file_path | awk '{print $1}')" echo "↪ Uploading $source_file_path" - curl $upload_url/$file_name -T $source_file_path + curl $upload_url/file/upload/$file_name -T $source_file_path echo "↪ Upload ytp success" echo "↪ Download: curl $upload_url/file/download/$file_name -o $file_name" echo "↪ Delete source"