File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ function error_exit() {
4+ LOG_ERROR " $1 " 1>&2
5+ exit 1
6+ }
7+
8+ python manage.py createcachetable || error_exit " create cache table failed"
9+ python manage.py migrate --noinput --traceback || error_exit " migrate table failed"
10+ python manage.py initialuser || error_exit " init project data failed"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ function error_exit() {
4+ LOG_ERROR " $1 " 1>&2
5+ exit 1
6+ }
7+
8+ python manage.py migrate --noinput --traceback || error_exit " migrate table failed"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ function error_exit() {
4+ LOG_ERROR " $1 " 1>&2
5+ exit 1
6+ }
7+
8+ python manage.py createcachetable > /dev/null || error_exit " create cache table failed"
9+ python manage.py migrate --noinput --traceback > /dev/null || error_exit " migrate table failed"
10+ python manage.py initializedb || error_exit " init project data failed"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ function error_exit() {
4+ LOG_ERROR " $1 " 1>&2
5+ exit 1
6+ }
7+
8+ python manage.py createcachetable > /dev/null || error_exit " create cache table failed"
9+ python manage.py migrate --noinput --traceback > /dev/null || error_exit " migrate table failed"
10+ python manage.py initializedb_open || error_exit " init project data failed"
11+ python manage.py initialize_exclude_paths || error_exit " init project exclude path data failed"
12+ python manage.py loadlibs all --dirname open_source_toollib --ignore-auth || error_exit " load tool libs data failed"
13+ python manage.py loadcheckers all --dirname open_source || error_exit " load tool checkers data failed"
14+ python manage.py loadpackages all --dirname open_source_package || error_exit " load tool checkpackages data failed"
You can’t perform that action at this time.
0 commit comments