install_unix.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. git clone https://git.sharix-app.org/ShariX_Open/sharix-open-webapp-design-template.git design_template
  3. cd design_template
  4. git checkout unstable
  5. cd ..
  6. git clone https://git.sharix-app.org/ShariX_Open/sharix-open-tickets.git tickets
  7. cd tickets
  8. git checkout unstable
  9. cd ..
  10. git clone https://git.sharix-app.org/ShariX_Open/sharix-open-backend.git metaservicesynced
  11. cd metaservicesynced
  12. git checkout unstable
  13. cd ..
  14. git clone https://git.sharix-app.org/ShariX_Open/sharix-open-config.git sharix-open-config
  15. cd sharix-open-config
  16. git checkout unstable
  17. cd ..
  18. git clone https://git.sharix-app.org/ShariX_Open/sharix-open-webservice-running.git webservice_running
  19. cd webservice_running
  20. git checkout unstable
  21. cd ..
  22. git clone https://git.sharix-app.org/ShariX_Open/sharix-open-landing.git landing
  23. cd landing/
  24. git checkout landing_module
  25. cd ..
  26. python3 -m venv env
  27. source env/bin/activate
  28. pip3 install --upgrade pip
  29. pip3 install -r requirements.txt
  30. python3 manage.py makemigrations SharixAdmin design-template metaservicesynced sharix-open-config tickets webservice_running landing
  31. python3 manage.py migrate
  32. python3 manage.py collectstatic
  33. #python3 manage.py createsuperuser
  34. deactivate
  35. chmod -x update_unix.sh install_unix.sh bin/webuser.sh
  36. chmod u+x update_unix.sh install_unix.sh bin/webuser.sh
  37. cp sharix-open-config/sharix_open.service /etc/systemd/system/