standard cron

Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
Eric Nemchik
2023-07-30 01:15:12 -05:00
parent fdc2d3e9d2
commit 860b518c74
14 changed files with 18 additions and 16 deletions
@@ -1,9 +1,11 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if [ ! -f /usr/sbin/cron ] && [ -f /usr/bin/apt ]; then
if ! builtin command -v busybox >/dev/null; then
echo "**** Adding busybox to package install list ****"
echo "busybox" >>/mod-repo-packages-to-install.list
fi
if [[ -f /usr/bin/apt ]] && [[ ! -f /usr/sbin/cron ]]; then
echo "**** Adding cron to package install list ****"
echo "cron" >>/mod-repo-packages-to-install.list
else
echo "**** cron package already installed, skipping ****"
fi