diff --git a/site-updater-docker.sh b/site-updater-docker.sh
index 128e44cc9997d8c62f6ab1f50f6a7f9e7ba39a40..c124708bf928d7d9621355d5d11dc166f85df674 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