This commit is contained in:
Joby 2024-10-22 20:20:17 -06:00
parent ef61e746e7
commit c94de8f2d7

View file

@ -6,8 +6,11 @@ if [ "$EUID" -ne 0 ]; then
exit 1 exit 1
fi fi
# Define source and destination directories # Get the directory where this script is located
SRC_DIR="nginx-conf" 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" DEST_DIR="/etc/nginx/conf.d"
# Check if source directory exists # Check if source directory exists