DocCyblade / tkl-mayan-edms

Turnkey Linux - Mayan EDMS
https://www.turnkeylinux.org/mayan-edms
Other
4 stars 12 forks source link

Create script to clear demo data #27

Closed DocCyblade closed 7 years ago

DocCyblade commented 7 years ago

Would be nice to have a script that clears all demo data, and starts off with clean Mayan EDMS install.

DocCyblade commented 7 years ago

We may need a script to dump the current database and set it back up. If we do, we may need to make a check or give the user many warnings that the script will clear all data, maybe even name it scary like 'delete-all-edms-data'

DocCyblade commented 7 years ago

Script should do the following:

  1. Describe to user overview of what the script will do, they must type OK
  2. Warn user data will be erased! Must Type YES
  3. Final Warning: Data will be erased! Must type CONFIRM
  4. Shutdown services nginx, supervisor
  5. Remove document files and cache files
  6. Drop/create mayan database
  7. Change to virtualenv source mayan-edms/bin/activate
  8. Setup the database mayan-edms.py initial setup
  9. Static files is needed mayan-edms.py collect static --noinput
  10. Start services nginx, supervisor
DocCyblade commented 7 years ago

Going to leave this out of the first build, and instead document on how one can remove the demo data in the docs

DocCyblade commented 7 years ago

In favor of keeping docs on the wiki of github and not buried deep in the file system see #47 for further progress on this on the wiki