Import crontabs from etc
Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
parent
bef0f4cee2
commit
dbd643f8c3
|
|
@ -2,6 +2,11 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
for cron_user in abc root; do
|
for cron_user in abc root; do
|
||||||
|
if [[ -f "/etc/crontabs/${cron_user}" ]]; then
|
||||||
|
lsiown "${cron_user}":"${cron_user}" "/etc/crontabs/${cron_user}"
|
||||||
|
crontab -u "${cron_user}" "/etc/crontabs/${cron_user}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -f "/defaults/crontabs/${cron_user}" ]]; then
|
if [[ -f "/defaults/crontabs/${cron_user}" ]]; then
|
||||||
# make folders
|
# make folders
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue