alpine-php8-cron-webserver/cron_create.sh

7 lines
211 B
Bash

#!/bin/sh
# Schleife über alle ENV-Variablen, die mit VAR_ beginnen
env | grep '^CRON_COMMAND_' | while IFS= read -r line; do
echo "$line" | cut -d "=" -f2 >> /var/crontab
echo "" >> /var/crontab
done