From 5ee51fcfbc6c9423860c38f0aedc63e0ed84aa35 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Thu, 14 Mar 2019 23:03:15 +0100 Subject: [PATCH] Remove path to ccnet, run supervisord as non-root, sleep 5 after the seafile-daemon start to prevent issues --- entrypoint.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 71c6386..c92d74f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,9 @@ #!/bin/bash -/usr/bin/seaf-cli init -c /ccnet -d /seafile -/usr/bin/seaf-cli start -c /ccnet -/usr/bin/seaf-cli sync -c /ccnet -u $USERNAME -p $PASSWORD -s $SERVER -l $LIBRARY_ID -d /volume -sleep 10 -/usr/bin/supervisord \ No newline at end of file +# There's 5 second timeout to make sure the seafile deamon is properly initialised. + +/usr/bin/seaf-cli init -d /.seafile +/usr/bin/seaf-cli start +sleep 5 +/usr/bin/seaf-cli sync -u $USERNAME -p $PASSWORD -s $SERVER -l $LIBRARY_ID -d /volume +/usr/bin/supervisord -u $UID -c /supervisord.conf \ No newline at end of file