mirror of
https://github.com/xmbjm/TV.git
synced 2025-01-21 00:45:38 -05:00
17 lines
350 B
Python
17 lines
350 B
Python
#!/bin/bash
|
|
|
|
for file in /iptv-api-config/*; do
|
|
filename=$(basename "$file")
|
|
target_file="$APP_WORKDIR/config/$filename"
|
|
if [ ! -e "$target_file" ]; then
|
|
cp -r "$file" "$target_file"
|
|
fi
|
|
done
|
|
|
|
. /.venv/bin/activate
|
|
|
|
service cron start &
|
|
|
|
python $APP_WORKDIR/main.py &
|
|
|
|
python -m gunicorn service.app:app -b 0.0.0.0:$APP_PORT --timeout=1000 |