1
0
Fork 0
mirror of https://github.com/imtbl/hydrus-server-docker synced 2024-06-02 02:34:51 +12:00
hydrus-server-docker/docker-entrypoint.sh

14 lines
131 B
Bash
Raw Normal View History

#!/bin/bash
2019-01-20 02:51:48 +13:00
. venv/bin/activate
2018-11-30 04:49:02 +13:00
2018-12-06 11:54:07 +13:00
stop() {
2019-01-20 02:51:48 +13:00
./server.py stop -d="/data"
2018-11-30 04:49:02 +13:00
}
2018-12-06 11:54:07 +13:00
trap "stop" SIGTERM
2018-11-30 04:49:02 +13:00
2019-01-20 02:51:48 +13:00
./server.py -d="/data" &
2018-11-30 04:49:02 +13:00
wait $!