add custom fixes

This commit is contained in:
2024-10-04 16:58:16 +02:00
parent f66ad104af
commit 6e16e71ab5
5 changed files with 402 additions and 1 deletions

View File

@ -7,6 +7,7 @@ for arg in "$@"; do
work-dir=*) work_dir="${arg#*=}" ;;
days=*) days="${arg#*=}" ;;
max_connections=*) max_connections="${arg#*=}" ;;
enable_fixes=*) enable_fixes="${arg#*=}" ;;
esac
done
@ -15,6 +16,11 @@ cd $work_dir
echo "working dir : " $(pwd)
echo "days : ${days}"
echo "max_connections : ${max_connections}"
echo "enable_fixes : ${enable_fixes}"
if [ "$enable_fixes" = true ] ; then
cp -R /fixes/* /bin/epg/sites/
fi
pm2 --name epg start npm -- run serve
npm run grab -- --channels=channels.xml --maxConnections=$max_connections --days=$days --gzip