#!/usr/bin/env bash # Fill in the following variables appname= url= domain= port= eff_email_address= # .conf installation { # Exit if variables are null if [ -z ${appname} ] || [ -z ${url} ] || [ -z ${domain} ] || [ -z ${port} ] || [ -z ${eff_email_address} ] then exit 1 fi sudo tee /etc/nginx/sites-available/${appname}.conf >/dev/null <