Remove path to ccnet, run supervisord as non-root, sleep 5 after the seafile-daemon start to prevent issues

This commit is contained in:
flow.gunso
2019-03-14 23:03:15 +01:00
parent e2ce243329
commit 5ee51fcfbc

View File

@@ -1,7 +1,9 @@
#!/bin/bash #!/bin/bash
/usr/bin/seaf-cli init -c /ccnet -d /seafile # There's 5 second timeout to make sure the seafile deamon is properly initialised.
/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 /usr/bin/seaf-cli init -d /.seafile
sleep 10 /usr/bin/seaf-cli start
/usr/bin/supervisord 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