theo/machines/theo-server/deploy/theo-common/import-corepos-first.sh.mako
2020-09-19 18:55:17 -05:00

18 lines
386 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='bin/rattail -c app/quiet.conf -P'
$RATTAIL import-corepos-api --no-versioning --warnings
$RATTAIL import-versions --runas corepos --warnings -m "initial data from CORE-POS"