Add basic LOC SMS support for theo-server machine

This commit is contained in:
Lance Edgar 2020-09-23 15:07:21 -05:00
parent 1b227a8d32
commit 6b88090587
12 changed files with 168 additions and 3 deletions

View file

@ -0,0 +1,17 @@
#!/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-locsms --no-versioning --warnings
$RATTAIL import-versions --runas locsms --warnings -m "initial data from LOC SMS"