فهرست منبع

opt: 可执行程序修改为minio-store

sensordb2 1 ماه پیش
والد
کامیت
ef641c133e
3فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      minio-store/minio-launcher.sh
  2. 1 1
      minio-store/status.sh
  3. 2 2
      package.sh

+ 1 - 1
minio-store/minio-launcher.sh

@@ -32,4 +32,4 @@ yaml() {
 MINIO_CONSOLE_PORT=$(yaml ./config/aside.yaml "['minio']['console-port']")
 MINIO_API_PORT=$(yaml ./config/aside.yaml "['minio']['api-port']")
 
-./bin/minio server ./data --console-address ":$MINIO_CONSOLE_PORT" --address ":$MINIO_API_PORT"
+./bin/minio-store server ./data --console-address ":$MINIO_CONSOLE_PORT" --address ":$MINIO_API_PORT"

+ 1 - 1
minio-store/status.sh

@@ -8,7 +8,7 @@ base_dir=$(
     pwd
 )
 cd $base_dir
-server_pid=$(ps -auxc | grep minio-store | grep -vE "grep|-Xmx700m" | awk '{print $2}')
+server_pid=$(pgrep -x minio-store)
 if [[ $server_pid == "" ]]; then
     echo "minio-store 未在运行"
 else

+ 2 - 2
package.sh

@@ -11,8 +11,8 @@ rm -rf $ROOT/tmp/*
 # ----- Start build -----
 if [ ! -r "$ROOT/bin/minio" ]; then
         echo "minio not found, downloading..."
-        wget https://dl.min.io/server/minio/release/linux-amd64/minio -O $ROOT/bin/minio
-        chmod +x $ROOT/bin/minio
+        wget https://dl.min.io/server/minio/release/linux-amd64/minio -O $ROOT/bin/minio-store
+        chmod +x $ROOT/bin/minio-store
 fi
 if [ ! -r "$ROOT/bin/mc" ]; then
         echo "mc not found, downloading..."