mirror of
https://github.com/suitenumerique/drive.git
synced 2026-09-22 09:35:12 +02:00
19 lines
403 B
Bash
19 lines
403 B
Bash
#!/bin/bash
|
|
|
|
# Trigger collabora configuration
|
|
python manage.py trigger_wopi_configuration
|
|
|
|
# Start the Django backend
|
|
gunicorn -b :8000 drive.wsgi:application --log-file - &
|
|
|
|
# Start the Nginx server
|
|
bin/run &
|
|
|
|
# if the current shell is killed, also terminate all its children
|
|
trap "pkill SIGTERM -P $$" SIGTERM
|
|
|
|
# wait for a single child to finish,
|
|
wait -n
|
|
# then kill all the other tasks
|
|
pkill -P $$
|