Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复初始化慢日志 #944

Merged
merged 2 commits into from
Oct 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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