This repository has been archived on 2024-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
rzh-server/web/addwebserver
2018-06-04 14:59:06 +02:00

9 lines
262 B
Bash

#!/bin/bash
lxc lanch ubuntu:18.04 web.$1
lxc exec web.$1 -- apt-get update
lxc exec web.$1 -- apt-get upgrade -y
lxc exec web.$1 -- apt-get isntall apache2
lxc file push ./src/addsite web.$1/
lxc exec web.$1 -- echo "listen 8080" | tee /etc/apache2/ports.conf