From c94de8f2d73ac07abf2db9f3488b086635de0730 Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Tue, 22 Oct 2024 20:20:17 -0600 Subject: [PATCH] bug fix --- install/nginx-conf.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/nginx-conf.sh b/install/nginx-conf.sh index 9715d01..4c619a3 100644 --- a/install/nginx-conf.sh +++ b/install/nginx-conf.sh @@ -6,8 +6,11 @@ if [ "$EUID" -ne 0 ]; then exit 1 fi -# Define source and destination directories -SRC_DIR="nginx-conf" +# Get the directory where this script is located +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Define source and destination directories using absolute path +SRC_DIR="$SCRIPT_DIR/nginx-conf" DEST_DIR="/etc/nginx/conf.d" # Check if source directory exists