Add basic feature to mirror POS DB in mysql or postgresql
but only supported for Catapult so far
This commit is contained in:
parent
3e66aa79da
commit
48960d961b
7 changed files with 107 additions and 10 deletions
16
machines/theo-server/deploy/theo-common/mirror-catapult-first.sh.mako
Executable file
16
machines/theo-server/deploy/theo-common/mirror-catapult-first.sh.mako
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# sanity check
|
||||
if [ "$USER" != 'rattail' ]; then
|
||||
echo ''
|
||||
echo "Please run this script as 'rattail' user:"
|
||||
echo ''
|
||||
echo " sudo -u rattail $0"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ${envroot}
|
||||
|
||||
RATTAIL_ONAGER='bin/rattail-onager -c app/quiet.conf -P --no-versioning'
|
||||
|
||||
$RATTAIL_ONAGER import-catapult --dbkey production --warnings
|
Loading…
Add table
Add a link
Reference in a new issue