From b4367e0cdc822fd9011f92b0dd5af6d67f89736d Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sun, 24 Apr 2022 14:24:21 +0200 Subject: [PATCH] refactor: move nginx globals to globals.sh Signed-off-by: Dominik Willner th33xitus@gmail.com --- scripts/globals.sh | 5 +++++ scripts/nginx.sh | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/globals.sh b/scripts/globals.sh index daec422..531dfef 100644 --- a/scripts/globals.sh +++ b/scripts/globals.sh @@ -64,4 +64,9 @@ function set_globals(){ #=============== PRETTY-GCODE =================# PGC_DIR="${HOME}/pgcode" PGC_FOR_KLIPPER_REPO="https://github.com/Kragrathea/pgcode" + + #================== NGINX =====================# + NGINX_SA="/etc/nginx/sites-available" + NGINX_SE="/etc/nginx/sites-enabled" + NGINX_CONFD="/etc/nginx/conf.d" } \ No newline at end of file diff --git a/scripts/nginx.sh b/scripts/nginx.sh index 789372b..92ee8a0 100644 --- a/scripts/nginx.sh +++ b/scripts/nginx.sh @@ -11,11 +11,6 @@ set -e -### global variables -NGINX_SA="/etc/nginx/sites-available" -NGINX_SE="/etc/nginx/sites-enabled" -NGINX_CONFD="/etc/nginx/conf.d" - #===================================================# #=================== REMOVE NGINX ==================# #===================================================#