theo/machines/theo-server/deploy/theo-common/mirror-catapult-first.sh.mako
Lance Edgar 48960d961b Add basic feature to mirror POS DB in mysql or postgresql
but only supported for Catapult so far
2020-09-25 17:54:26 -05:00

17 lines
339 B
Mako
Executable file

#!/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