Changeset 0ac15a1 for asadb/util
- Timestamp:
- Apr 5, 2012, 1:12:37 AM (14 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- a03cb61
- Parents:
- ffecc7f (diff), a9a8f3d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Alex Dehnert <adehnert@…> (04/05/12 01:12:37)
- git-committer:
- Alex Dehnert <adehnert@…> (04/05/12 01:12:37)
- Location:
- asadb/util
- Files:
-
- 2 edited
-
emails.py (modified) (1 diff)
-
warehouse-refresh.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asadb/util/emails.py
r55ffcd1 r6dfcd66 4 4 5 5 def email_from_template(tmpl, context, 6 subject, to=[], cc=[], from_email= 'asa-db@mit.edu', ):6 subject, to=[], cc=[], from_email=None, ): 7 7 tmpl_obj = get_template(tmpl) 8 8 ctx = Context(context) -
asadb/util/warehouse-refresh.sh
r5c77dea r2ca19cb 2 2 3 3 author="$USER warehouse-refresh.sh on $(hostname) <asa-db@mit.edu>" 4 basedir="$(dirname "$(readlink -f "$0")")" 5 database="$("$basedir/../settings/fetch" database NAME)" 4 6 5 7 date 6 8 7 cd saved-data9 cd "$basedir/saved-data" 8 10 9 mysqldump --skip-extended-insert asa+forms> data.sql11 mysqldump --skip-extended-insert "$database" > data.sql 10 12 11 13 echo … … 20 22 echo 21 23 echo Performing replacement 22 echo "TRUNCATE TABLE groups_group" | mysql asa+forms24 echo "TRUNCATE TABLE groups_group" | mysql "$database" 23 25 ../import_db.py < ../warehouse-dump.csv > /dev/null 24 mysqldump --skip-extended-insert asa+forms> data.sql26 mysqldump --skip-extended-insert "$database" > data.sql 25 27 26 28 echo
Note: See TracChangeset
for help on using the changeset viewer.