bloxbergBootnodeSetup/setup.sh

25 lines
477 B
Bash
Executable File

#!/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
sudo chown -R 1000:1000 ./bootnode
}
check_packages