seafile-server.install 978 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. pre_install() {
  2. rm -rf /usr/lib/seafile
  3. virtualenv2 --system-site-packages /usr/lib/seafile/seafileenv
  4. virtualenv2 --relocatable /usr/lib/seafile/seafileenv
  5. source /usr/lib/seafile/seafileenv/bin/activate
  6. pip2 install "Django==1.8.10"
  7. pip2 install "django-statici18n==1.1.2"
  8. pip2 install "django-compressor==1.4"
  9. pip2 install "git+git://github.com/haiwen/django-constance.git@bde7f7cdfd0ed1631a6817fd4cd76f37bf54fe35#egg=django-constance[database]"
  10. pip2 install "openpyxl==2.3.0"
  11. pip2 install "pytz==2015.7"
  12. pip2 install "djangorestframework==3.3.1"
  13. pip2 install "django-post-office==2.0.3"
  14. pip2 install "Pillow>=2.6.1,<3.0.0"
  15. pip2 install "python-memcached==1.57"
  16. pip2 install gunicorn
  17. deactivate
  18. }
  19. post_install() {
  20. systemctl daemon-reload
  21. }
  22. pre_upgrade() {
  23. rm -rf /usr/lib/seafile
  24. pre_install
  25. }
  26. post_upgrade() {
  27. post_install
  28. }
  29. post_remove() {
  30. rm -rf /usr/lib/seafile
  31. post_install
  32. }