Skip to content

Commit 952a680

Browse files
committed
Load database through 'manage.py dbshell'. Avoids repeating username, password, etc. in several places (DRY).
- Legacy-Id: 10481
1 parent 29b30c6 commit 952a680

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docker/updatedb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ echo "Loading database ..."
126126
gunzip < $DATADIR/ietf_utf8.sql.gz \
127127
| pv --progress --bytes --rate --eta --size $(gzip --list --quiet $DATADIR/ietf_utf8.sql.gz | awk '{ print $2 }') \
128128
| sed -e 's/ENGINE=MyISAM/ENGINE=InnoDB/' \
129-
| mysql --host=localhost --user=django --password=RkTkDPFnKpko -s -f ietf_utf8
129+
| $parent/ietf/manage.py dbshell
130+
130131

131132

0 commit comments

Comments
 (0)