#!/bin/bash apt-get update apt-get install -y wget curl git vim if ! which docker ; then curl -s -o getdocker.sh https://get.docker.com bash getdocker.sh gpasswd -a vagrant docker fi mkdir -p nextcloud && cd nextcloud wget -O mkcert https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64 chmod +x mkcert mv mkcert /usr/local/bin sudo apt-get install -y libnss3-tools mkdir certs config mkcert -install mkcert -cert-file certs/local-cert.pem -key-file certs/local-key.pem "mon.nxc" "*.mon.nxc" cat > traefik.yml < ./config/static.yml < ./config/dynamic.yml < nextcloud.yml <