Added light install for migration.

This commit is contained in:
Colin Diem
2021-05-09 11:15:13 -04:00
parent 5f88de40c8
commit b5aad3f94f

32
light-install.sh Normal file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
base_dir=$PWD
echo "Running light install..."
echo "Making directories..."
mkdir nginx-reverse-proxy/ssl
mkdir blog
echo "Done"
echo ">>Setting up SSL certs..."
echo ">>>>Setting up blog certs..."
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx-reverse-proxy/ssl/blog.key -out nginx-reverse-proxy/ssl/blog.crt
echo ">>>>Done"
echo ">>>>Setting up bitwarden certs..."
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx-reverse-proxy/ssl/bitwarden.key -out nginx-reverse-proxy/ssl/bitwarden.crt
echo ">>>>Done"
echo ">>>>Setting up HomeAssistant certs..."
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx-reverse-proxy/ssl/ha.key -out nginx-reverse-proxy/ssl/ha.crt
echo ">>>>Done"
echo ">>Done"
echo "Don't forget to edit /etc/hosts to add the new sites
172.31.30.78 blog
172.31.30.78 bitwarden
172.31.30.78 gitea
172.31.30.78 motioneye
172.31.30.78 homeassistant"
echo "Also, get the blog code deployed to the git instance and pull it back down here to get the blog running."
echo "The blog is tricky, because it needs the theme to work, don't forget to clone that as well."
echo "Just run start.sh and hopefully everything is groovy."