|
@@ -43,7 +43,7 @@ else
|
|
|
fi
|
|
|
|
|
|
# parameter set
|
|
|
-log_path="./log/minio-into-ck/"
|
|
|
+log_path="./log/minio-into-stck/"
|
|
|
|
|
|
# extra function
|
|
|
if [[ ! -d "$base_dir/log" ]]; then
|
|
@@ -55,12 +55,12 @@ if [[ ! -d "$base_dir/lib" ]]; then
|
|
|
log_err "缺少lib文件夹,请查证后重新运行此脚本" && exit 1
|
|
|
fi
|
|
|
|
|
|
-if [[ ! -f "$base_dir/minio-into-ck" ]]; then
|
|
|
- log_err "文件夹中缺少minio-into-ck(主程序),无法运行" && exit 1
|
|
|
+if [[ ! -f "$base_dir/minio-into-stck" ]]; then
|
|
|
+ log_err "文件夹中缺少minio-into-stck(主程序),无法运行" && exit 1
|
|
|
fi
|
|
|
|
|
|
-if [[ ! -x "$base_dir/minio-into-ck" ]]; then
|
|
|
- log_err "minio-into-ck无可执行权限,无法运行。请使用chmod" && exit 1
|
|
|
+if [[ ! -x "$base_dir/minio-into-stck" ]]; then
|
|
|
+ log_err "minio-into-stck无可执行权限,无法运行。请使用chmod" && exit 1
|
|
|
fi
|
|
|
|
|
|
if [[ ! -f "$base_dir/license/license_key.json" ]]; then
|
|
@@ -70,13 +70,13 @@ fi
|
|
|
|
|
|
|
|
|
###################################################################################################
|
|
|
-if ps -auxc | grep "minio-into-ck" | grep -v grep > /dev/null; then
|
|
|
- log_info "minio-into-ck已在运行"
|
|
|
+if ps -auxc | grep "minio-into-stck" | grep -v grep > /dev/null; then
|
|
|
+ log_info "minio-into-stck已在运行"
|
|
|
else
|
|
|
if [[ ! -d $log_path ]]; then
|
|
|
mkdir "$log_path"
|
|
|
fi
|
|
|
- log_file="minio-into-ck_$(date "+%Y-%m-%d-%H:%M:%S").log"
|
|
|
- ./minio-into-ck server --config-file=$base_dir/config/config.xml &> "${log_path}${log_file}" &
|
|
|
+ log_file="minio-into-stck_$(date "+%Y-%m-%d-%H:%M:%S").log"
|
|
|
+ ./minio-into-stck server --config-file=$base_dir/config/config.xml &> "${log_path}${log_file}" &
|
|
|
./status.sh
|
|
|
fi
|