Added light install for migration.
This commit is contained in:
32
light-install.sh
Normal file
32
light-install.sh
Normal 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."
|
||||
Reference in New Issue
Block a user