apkipa 2 月之前
父節點
當前提交
75d2ba0905
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      minio-into-stck/init_db.sh

+ 6 - 1
minio-into-stck/init_db.sh

@@ -1,12 +1,17 @@
 #!/bin/bash
 
 set -e
+base_dir=$(
+    cd "$(dirname "$0")"
+    pwd
+)
+cd $base_dir
 
 # Check if MariaDB is running
 if systemctl is-active --quiet mariadb; then
     :
 else
-    echo "MariaDB is not running. Please start MariaDB first."
+    echo "❌ MariaDB is not running. Please start it first."
     exit 1
 fi