install.sh 928 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. git clone -b master https://git.sharix-app.org/ShariX_Open/sharix-open-tickets.git tickets
  3. git clone -b metasynced_module https://git.sharix-app.org/ShariX_Open/sharix-open-backend.git metaservicesynced
  4. git clone -b webinterface https://git.sharix-app.org/ShariX_Open/sharix-open-webadmin.git SharixAdmin/templates/SharixAdmin
  5. git clone -b master https://git.sharix-app.org/ShariX_Open/sharix-open-config.git conf
  6. python3 -m venv venv
  7. source venv/bin/activate
  8. pip install --upgrade pip
  9. pip install -r requirements.txt
  10. if [ -f core/config.py ]; then
  11. echo "File config.py already created"
  12. else
  13. cp core/_config.py core/config.py
  14. echo "File config.py was successfully created"
  15. fi
  16. python manage.py makemigrations SharixAdmin metaservicesynced tickets
  17. python manage.py migrate
  18. python manage.py collectstatic -l --no-input
  19. python manage.py createsuperuser
  20. #cp conf/sharix_open.service /etc/systemd/system/