docker-swag/root/etc/cont-init.d/43-crontabs

11 lines
225 B
Plaintext
Raw Normal View History

#!/usr/bin/with-contenv 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/