From af4c1a98252bf1f132ecce6dd192a9e9a078f57d Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 3 Apr 2021 14:02:31 +0700 Subject: [PATCH] Add nginx setup --- nginx-setup.sh | 16 ++++++++++++++++ postgres-setup.sh | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 nginx-setup.sh 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