Files
docker-seafile-client/entrypoint.sh
2019-03-14 23:31:19 +01:00

11 lines
317 B
Bash

#!/bin/bash
# There's 5 second timeout to make sure the seafile deamon is properly initialised.
/usr/bin/seaf-cli init -d /.seafile
sleep 5
/usr/bin/seaf-cli start
sleep 5
/usr/bin/seaf-cli sync -u $USERNAME -p $PASSWORD -s $SERVER -l $LIBRARY_ID -d /volume
sleep 5
/usr/bin/supervisord -u $UID -c /supervisord.conf