SHARE
TWEET

Untitled

a guest Aug 13th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. set -e
  3. set -x
  4. source /home/paperless/.bash_profile
  5.  
  6. export RAILS_ENV="mind"
  7.  
  8. /usr/local/bin/rvm-shell 'default' -c '
  9. cd /var/app/paperless-mind/current && \
  10. rake db:dump_cms' &
  11. echo "exit status: $?"
  12.  
  13. /usr/local/bin/rvm-shell 'default' -c '
  14. cd /var/app/paperless-mind/current && \
  15. rake db:dump_schema_plus_cms' &
  16. echo "exit status: $?"
  17.  
  18. wait
RAW Paste Data
Top