mirror of
https://github.com/manualdousuario/marreta.git
synced 2026-05-05 23:36:42 +00:00
rodar proxy list
This commit is contained in:
parent
33a7569d17
commit
86be4a69a5
2 changed files with 8 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue