seafile-containerized/seafile-server/scripts/start.sh

12 lines
310 B
Bash
Raw Permalink Normal View History

2021-01-22 21:27:05 +00:00
#!/bin/bash
/scripts/create_data_links.sh
python3 /scripts/start.py &
2021-01-22 21:27:05 +00:00
while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do
echo "Waiting for SeaRPC socket..."
sleep 1
done
socat -v -d -d TCP-LISTEN:8001,fork UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever