#!/bin/sh # Check if the TZ environment variable is set if [ -n "$TZ" ]; then # Set the timezone echo "Setting timezone to $TZ" ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && dpkg-reconfigure -f noninteractive tzdata else echo "Timezone not specified. Using default timezone." fi # Start cron echo "Starting cron..." cron -f