diff --git a/scripts/mysql/install.sh b/scripts/mysql/install.sh index 7af71d6e..6ea2bbaf 100644 --- a/scripts/mysql/install.sh +++ b/scripts/mysql/install.sh @@ -276,6 +276,7 @@ elif [[ ${memTotal} -ge 32768 ]]; then fi # 初始化 +cd ${mysqlPath} rm -rf ${mysqlPath}/src rm -rf ${mysqlPath}/data mkdir -p ${mysqlPath}/data diff --git a/scripts/postgresql/install.sh b/scripts/postgresql/install.sh index 4d24ebc4..4a05f6f5 100644 --- a/scripts/postgresql/install.sh +++ b/scripts/postgresql/install.sh @@ -91,6 +91,7 @@ if [ "$?" != "0" ]; then exit 1 fi +cd ${postgresqlPath} rm -rf ${postgresqlPath}/src # 配置