mirror of
https://git.myvelabs.com/lab/nginx.git
synced 2025-12-17 21:26:13 +00:00
Update nginx.sh
This commit is contained in:
parent
a7335e5419
commit
b000903e83
1 changed files with 10 additions and 0 deletions
10
nginx.sh
10
nginx.sh
|
|
@ -39,6 +39,16 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Exit if variables are missing
|
||||
for var in eff_email_address appname domain host port
|
||||
do
|
||||
if [ -z ${!var} ]
|
||||
then
|
||||
echo "Variable ${var} does not exist, aborting..."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
# Add backup directive to nginx.conf if supplied
|
||||
if [ ${backup_port} ]
|
||||
then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue