| update_db() { | |
| while true; do | |
| echo "Updating database..." | |
| wget -O /workplace/zigistry.db.new "https://huggingface.co/buckets/Zigistry/Zigistry/resolve/zigistry.db?download=true" | |
| mv /workplace/zigistry.db.new /workplace/zigistry.db | |
| sleep 3600 | |
| done | |
| } | |
| update_db & | |
| exec ./server |