Explorar o código

Install crontab on arch if not present during install

Nicolas Meienberger %!s(int64=3) %!d(string=hai) anos
pai
achega
e227e4d148
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      scripts/configure.sh

+ 6 - 2
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