Skip to content

Commit 86be4a6

Browse files
committed
rodar proxy list
1 parent 33a7569 commit 86be4a6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ RUN touch /app/logs/cron.log
6262
RUN echo '0 * * * * root php "/app/bin/cleanup" >> /app/logs/cleanup.log 2>&1' >> /etc/crontab
6363
RUN echo '0 * * * * root php "/app/bin/proxy" >> /app/logs/proxy.log 2>&1' >> /etc/crontab
6464

65-
# Run proxy list check
66-
RUN php /app/bin/proxy
67-
6865
EXPOSE 80
6966

7067
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

docker-entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ log_success "Cron started"
116116

117117
echo -e "\n${GREEN}=== Marreta initialized ===${NC}\n"
118118

119+
# Run proxy list updater
120+
log_info "Running proxy list updater..."
121+
if php /app/bin/proxy; then
122+
log_success "Proxy list updater completed successfully"
123+
else
124+
log_info "Proxy list updater finished (may not have been configured)"
125+
fi
126+
119127
# Wait for any process to exit
120128
wait -n
121129

0 commit comments

Comments
 (0)