z90486091 commited on
Commit
b0dae83
·
verified ·
1 Parent(s): 1cdfc55

Create hf_entrypoint.sh

Browse files
Files changed (1) hide show
  1. hf_entrypoint.sh +7 -0
hf_entrypoint.sh ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # Start db_syncer in background
3
+ if [ -n "$HF_TOKEN" ] && [ -n "$HF_REPO_ID" ]; then
4
+ python3 /usr/local/bin/db_syncer.py &
5
+ fi
6
+ # Hand off to original baked entrypoint
7
+ exec /usr/local/bin/sqlite_entrypoint.sh "$@"