add custom fixes
This commit is contained in:
6
start.sh
6
start.sh
@ -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
|
||||
|
Reference in New Issue
Block a user