install_unix.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. python3 -m venv env
  23. source env/bin/activate
  24. pip3 install --upgrade pip
  25. pip3 install -r requirements.txt
  26. python3 manage.py makemigrations SharixAdmin design-template metaservicesynced sharix-open-config tickets webservice_running
  27. python3 manage.py migrate
  28. python3 manage.py collectstatic
  29. #python3 manage.py createsuperuser
  30. deactivate
  31. chmod -x update_unix.sh install_unix.sh bin/webuser.sh
  32. chmod u+x update_unix.sh install_unix.sh bin/webuser.sh
  33. cp sharix-open-config/sharix_open.service /etc/systemd/system/