ACH-ARKIVO-ImportMedia/cron_launch.sh

12 lines
221 B
Bash

#!/bin/bash
# Set the working directory
cd /app
# Source the environment variables
set -a
[ -f /app/.env ] && source /app/.env
set +a
# Run the Python script
/usr/local/bin/python /app/main.py >> /var/log/cron.log 2>&1