This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/utils/setup.sh
2022-12-04 23:04:31 +01:00

21 lines
464 B
Bash

#!/bin/bash
fatal() {
echo "FATAL: $@"
exit 1
}
echo "# installing docker"
sudo apt update || fatal "something went wrong"
sudo apt install docker* || fatal "something went wrong"
echo "# check groups"
groups | grep docker || sudo usermod $USER -aG docker
fatal "please relog to enter docker group"
echo "# network"
docker network create proxy
echo "# web"
[ -d /srv/www ] || sudo mkdir -p /srv/www
sudo git clone git@git.faulty.nl:infra/web /srv/www