add delay option
All checks were successful
Build docker container / build (push) Successful in 6m12s
All checks were successful
Build docker container / build (push) Successful in 6m12s
This commit is contained in:
4
start.sh
4
start.sh
@ -6,6 +6,7 @@ for arg in "$@"; do
|
||||
chron-schedule=*) chron_schedule="${arg#*=}" ;;
|
||||
work-dir=*) work_dir="${arg#*=}" ;;
|
||||
days=*) days="${arg#*=}" ;;
|
||||
delay=*) delay="${arg#*=}" ;;
|
||||
max_connections=*) max_connections="${arg#*=}" ;;
|
||||
enable_fixes=*) enable_fixes="${arg#*=}" ;;
|
||||
api_url=*) api_url="${arg#*=}" ;;
|
||||
@ -16,6 +17,7 @@ echo "chron_schedule : ${chron_schedule}"
|
||||
cd $work_dir
|
||||
echo "working dir : " $(pwd)
|
||||
echo "days : ${days}"
|
||||
echo "delay : ${delay}"
|
||||
echo "max_connections : ${max_connections}"
|
||||
echo "enable_fixes : ${enable_fixes}"
|
||||
echo "api url : ${api_url}"
|
||||
@ -27,4 +29,4 @@ fi
|
||||
sed -i -E "s/(https:\x2f\x2fiptv-org.github.io\x2fapi$\123filename\125)/$api_url$\123filename\125/g" $work_dir/scripts/core/apiClient.ts
|
||||
ln -s $work_dir/guide.xml /public/guide.xml
|
||||
ln -s $work_dir/guide.xml.gz /public/guide.xml.gz
|
||||
pm2-runtime pm2.config.js --name epg --node-args="--no-autorestart --cron-restart="$chron_schedule" --maxConnections=$max_connections --days=$days"
|
||||
pm2-runtime pm2.config.js --name epg --node-args="--no-autorestart --cron-restart="$chron_schedule" --maxConnections=$max_connections --days=$days --delay=$delay"
|
Reference in New Issue
Block a user