diff --git a/ubuntu/install-node.sh b/ubuntu/install-node.sh index 7b09693..4d2af4f 100644 --- a/ubuntu/install-node.sh +++ b/ubuntu/install-node.sh @@ -1,7 +1,11 @@ cd /srv # install software -apt install nano wget curl docker.io docker-compose -y +apt install nano wget curl docker.io -y + +# install docker-compose. Apt installs broken version, so use this way. +curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose +chmod +x /usr/local/bin/docker-compose # install keys curl https://git.infra.timal.kz/djerom/public/raw/branch/master/install-keys.sh | bash @@ -16,4 +20,5 @@ curl https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/.env.example # install updater curl https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/update.sh | sed 's/\r$//' > update.sh +chmod +x /srv/update.sh echo "*/3 * * * * /srv/update.sh" | crontab - \ No newline at end of file