We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ade05a7 + 72cb346 commit f6438c4Copy full SHA for f6438c4
root/etc/crontabs/abc
root/etc/s6-overlay/s6-rc.d/init-crontabs-config/run
@@ -13,5 +13,18 @@ if [[ ! -f /config/crontabs/root ]]; then
13
cp /etc/crontabs/root /config/crontabs/
14
fi
15
16
+# if abc crontabs do not exist in config
17
+# copy abc crontab from system
18
+if [[ ! -f /config/crontabs/abc ]] && crontab -l -u abc; then
19
+ crontab -l -u abc >/config/crontabs/abc
20
+fi
21
+
22
+# if abc crontabs still do not exist in config (were not copied from system)
23
+# copy abc crontab from included defaults
24
+if [[ ! -f /config/crontabs/abc ]]; then
25
+ cp /etc/crontabs/abc /config/crontabs/
26
27
28
# import user crontabs
29
crontab -u root /config/crontabs/root
30
+crontab -u abc /config/crontabs/abc
0 commit comments