seafile-containerized/seafile-server/scripts/start.sh
2021-01-25 15:31:12 +01:00

12 lines
317 B
Bash

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