File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ RUN crontab /etc/cron.d/import-cron
2525RUN touch /var/log/cron.log
2626
2727# Start the cron service and the application
28- CMD printenv > /etc/environment && cron && tail -f /var/log/cron.log
28+ CMD printenv > /etc/environment && cron && tail -f /var/log/cron.log
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # This file is run on successful log rotation
4+
35# Define the log file and the rotated log file
46ROTATED_LOG_FILE=" $LOG_PATH .1"
57
68# Check if the rotated log file exists
79if [ -f " $ROTATED_LOG_FILE " ]; then
810 echo " Log rotation successful. Processing the rotated log file."
911 # Call the import script
10- python3 /app/import_logs.py --dry-run " $ROTATED_LOG_FILE " --url " $MATOMO_URL " --token-auth " $API_TOKEN "
12+ python3 /app/import_logs.py " $ROTATED_LOG_FILE " --url " $MATOMO_URL " --token-auth " $API_TOKEN "
1113
1214 # Find the PID of the traefik process
1315 TRAEFIK_PID=$( pgrep traefik)
You can’t perform that action at this time.
0 commit comments