Add basic LOC SMS support for theo-server machine
This commit is contained in:
parent
1b227a8d32
commit
6b88090587
12 changed files with 168 additions and 3 deletions
17
machines/theo-server/deploy/theo-common/import-locsms-first.sh.mako
Executable file
17
machines/theo-server/deploy/theo-common/import-locsms-first.sh.mako
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue