Add nginx setup
This commit is contained in:
parent
f07dc5598a
commit
af4c1a9825
16
nginx-setup.sh
Normal file
16
nginx-setup.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Catch errors
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Install updates
|
||||||
|
sudo apt update && sudo apt upgrade -y
|
||||||
|
|
||||||
|
# Install nginx from the latest version of repos
|
||||||
|
sudo apt install nginx -y
|
||||||
|
|
||||||
|
# Enable nginx
|
||||||
|
sudo systemctl enable nginx
|
||||||
|
|
||||||
|
# Start nginx
|
||||||
|
sudo systemctl start nginx
|
@ -10,4 +10,4 @@ sudo apt-get update
|
|||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
|
|
||||||
# Install postgres and common utils
|
# Install postgres and common utils
|
||||||
sudo apt install postgresql postgresql-contrib
|
sudo apt install postgresql postgresql-contrib -y
|
Loading…
Reference in New Issue
Block a user