From 997f3c7904e39decf9378ba85b8bd41cf4975a1d Mon Sep 17 00:00:00 2001
From: idk <hankhill19580@gmail.com>
Date: Mon, 26 Sep 2022 12:26:17 -0400
Subject: [PATCH] update docker run script

---
 site-updater-docker.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/site-updater-docker.sh b/site-updater-docker.sh
index 128e44cc9..c124708bf 100755
--- a/site-updater-docker.sh
+++ b/site-updater-docker.sh
@@ -32,10 +32,10 @@
 ##sudo adduser --disabled-password --disabled-login --ingroup docker docker
 ## however the specifics may vary from distribution to distribution.
 
+dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
 
-
-if [ -f config.sh ]; then
-	. config.sh
+if [ -f "${dir}/config.sh" ]; then
+	. "${dir}/config.sh"
 fi
 
 if [ -z $port ]; then
-- 
GitLab