Install crontab on arch if not present during install
This commit is contained in:
parent
001905556b
commit
e227e4d148
1 changed files with 6 additions and 2 deletions
|
@ -49,10 +49,14 @@ else
|
||||||
sudo systemctl start docker
|
sudo systemctl start docker
|
||||||
sudo systemctl enable docker
|
sudo systemctl enable docker
|
||||||
elif [[ "${OS}" == "arch" ]]; then
|
elif [[ "${OS}" == "arch" ]]; then
|
||||||
sudo pacman -Sy --noconfirm docker cronie
|
sudo pacman -Sy --noconfirm docker
|
||||||
systemctl enable --now cronie.service
|
|
||||||
sudo systemctl start docker.service
|
sudo systemctl start docker.service
|
||||||
sudo systemctl enable 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
|
else
|
||||||
echo "Your OS ${OS} is not supported by this script. Please install docker and docker-compose manually."
|
echo "Your OS ${OS} is not supported by this script. Please install docker and docker-compose manually."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue