From e227e4d148cc4371b2d4cafe613d291f9f977852 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 1 Jun 2022 18:08:46 +0200 Subject: [PATCH] Install crontab on arch if not present during install --- scripts/configure.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/configure.sh b/scripts/configure.sh index 0e6a5c03..8de2dca2 100755 --- a/scripts/configure.sh +++ b/scripts/configure.sh @@ -49,10 +49,14 @@ else sudo systemctl start docker sudo systemctl enable docker elif [[ "${OS}" == "arch" ]]; then - sudo pacman -Sy --noconfirm docker cronie - systemctl enable --now cronie.service + sudo pacman -Sy --noconfirm docker sudo systemctl start docker.service sudo systemctl enable docker.service + + if ! command -v crontab >/dev/null; then + sudo pacman -Sy --noconfirm cronie + systemctl enable --now cronie.service + fi else echo "Your OS ${OS} is not supported by this script. Please install docker and docker-compose manually." exit 1