Skip to content

Commit

Permalink
fix 添加初始化慢日志 (#944)
Browse files Browse the repository at this point in the history
Co-authored-by: alenx.hai <alenx.hai@gamil.com>
  • Loading branch information
AlenxHai and alenx.hai authored Oct 28, 2020
1 parent 0f77c1d commit 8aca672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function init() {
sudo yum install -y python36 python3-devel python36-pip openldap-devel unixODBC-devel gettext

python3 -m pip install virtualenv -i https://mirrors.aliyun.com/pypi/simple/
if [ ! -d "venv" ]; then
if [[ ! -d "venv" ]]; then
virtualenv --system-site-packages -p python3 venv
fi
source ./venv/bin/activate
Expand Down Expand Up @@ -62,6 +62,7 @@ function migration() {
python3 manage.py makemigrations sql
python3 manage.py migrate
python3 manage.py dbshell<sql/fixtures/auth_group.sql
python3 manage.py dbshell<sql/src/init_sql/mysql_slow_query_review.sql
if [ $? == "0" ]; then
echo -e "Migration: [\033[32m ok \033[0m]"
else
Expand Down

0 comments on commit 8aca672

Please sign in to comment.