docker-swag/root/etc/cont-init.d/43-crontabs
2022-11-22 20:55:25 +00:00

12 lines
249 B
Plaintext

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# copy crontabs if needed
if [[ ! -f /config/crontabs/root ]]; then
cp /etc/crontabs/root /config/crontabs/
fi
# import user crontabs
rm /etc/crontabs/*
cp /config/crontabs/* /etc/crontabs/