From fc25280a36832f1d6b80963e1f174cebcd3e2845 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Fri, 22 Dec 2023 12:25:03 +0800 Subject: [PATCH] fix: importdb sh --- misc/importdb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/importdb.sh b/misc/importdb.sh index 652aaac2..9a3d7dfa 100644 --- a/misc/importdb.sh +++ b/misc/importdb.sh @@ -11,7 +11,7 @@ InstallSQLDir=/usr/local/omc/etc/db/install drop_db_sql="drop database IF EXISTS ${DBNAME}" create_db_sql="create database IF NOT EXISTS ${DBNAME}" -case "$M_ARG" in +case "$1" in upgrade) echo "Upgrade database ${DBNAME}" for SQL in ${UpgradeSQLDir}/*.sql; do