diff --git a/nginx-setup.sh b/nginx-setup.sh new file mode 100644 index 0000000..72ece95 --- /dev/null +++ b/nginx-setup.sh @@ -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 diff --git a/postgres-setup.sh b/postgres-setup.sh index 38161f0..0a59fa1 100644 --- a/postgres-setup.sh +++ b/postgres-setup.sh @@ -10,4 +10,4 @@ sudo apt-get update sudo apt upgrade -y # Install postgres and common utils -sudo apt install postgresql postgresql-contrib \ No newline at end of file +sudo apt install postgresql postgresql-contrib -y \ No newline at end of file