2019-07-30 11:05:17 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
check_packages() {
|
|
|
|
|
|
|
|
if [ $(grep -i debian /etc/*-release | wc -l) -gt 0 ]; then
|
|
|
|
if [ ! -f /usr/bin/docker ]; then
|
|
|
|
echo "INSTALLING DOCKER"
|
|
|
|
sudo apt-get install -y docker-ce
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f /usr/local/bin/docker-compose ]; then
|
|
|
|
echo "INSTALLING DOCKER-COMPOSE"
|
|
|
|
sudo apt-get install docker-compose
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
sudo apt install chrony
|
|
|
|
sudo systemctl enable chrony
|
|
|
|
sudo systemctl start chronyd
|
2019-07-30 11:37:19 +02:00
|
|
|
sudo chown -R 1000:1000 ./bootnode
|
2019-07-30 11:05:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
check_packages
|