rodar proxy list

This commit is contained in:
Renan Bernordi 2025-05-30 00:52:57 -03:00
parent 33a7569d17
commit 86be4a69a5
2 changed files with 8 additions and 3 deletions

View file

@ -62,9 +62,6 @@ RUN touch /app/logs/cron.log
RUN echo '0 * * * * root php "/app/bin/cleanup" >> /app/logs/cleanup.log 2>&1' >> /etc/crontab
RUN echo '0 * * * * root php "/app/bin/proxy" >> /app/logs/proxy.log 2>&1' >> /etc/crontab
# Run proxy list check
RUN php /app/bin/proxy
EXPOSE 80
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

View file

@ -116,6 +116,14 @@ log_success "Cron started"
echo -e "\n${GREEN}=== Marreta initialized ===${NC}\n"
# Run proxy list updater
log_info "Running proxy list updater..."
if php /app/bin/proxy; then
log_success "Proxy list updater completed successfully"
else
log_info "Proxy list updater finished (may not have been configured)"
fi
# Wait for any process to exit
wait -n