mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
started on the package submit script
This commit is contained in:
parent
7b9956f225
commit
cbe2050420
5 changed files with 81 additions and 8 deletions
23
support/schema/reloadtestdb.sh
Executable file
23
support/schema/reloadtestdb.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
mydir=`pwd`
|
||||
if [ `basename $mydir` != "schema" ]; then
|
||||
echo "you must be in the aur/support/schema directory to run this script"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "dropping old database..."
|
||||
yes | mysqladmin -uaur -paur drop AUR
|
||||
|
||||
echo "recreating database..."
|
||||
mysqladmin -uaur -paur create AUR
|
||||
|
||||
echo "recreating tables..."
|
||||
mysql -uaur -paur AUR < ./aur-schema.sql
|
||||
|
||||
echo "loading dummy-data..."
|
||||
bzcat ./dummy-data.sql.bz2 | mysql -uaur -paur AUR
|
||||
|
||||
echo "done."
|
||||
exit
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue