From 74b291a9d72eb5cf483d88c0389d2da0e4449590 Mon Sep 17 00:00:00 2001 From: Manuel Sampedro Date: Mon, 25 May 2026 20:21:53 +0200 Subject: [PATCH] fix: quote bglapi docker volume paths --- api/run.sh.template | 8 ++++---- app/run.sh.template | 6 +++--- postgres/run.sh.template | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/api/run.sh.template b/api/run.sh.template index 5720c12..c4544e7 100644 --- a/api/run.sh.template +++ b/api/run.sh.template @@ -4,8 +4,8 @@ docker container rm bglapi-server parentdir="$(dirname "$(pwd)")" docker run --restart=always \ --name bglapi-server \ - -v $parentdir/config:/config/ \ - -v $parentdir/data/socket/:/var/run/postgresql/ \ - -v $parentdir/app/:/app/ \ + -v "$parentdir/config:/config/" \ + -v "$parentdir/data/socket/:/var/run/postgresql/" \ + -v "$parentdir/app/:/app/" \ --net=host \ - -it bglapi-server \ No newline at end of file + -it bglapi-server diff --git a/app/run.sh.template b/app/run.sh.template index ed16044..a769e39 100644 --- a/app/run.sh.template +++ b/app/run.sh.template @@ -4,8 +4,8 @@ docker container stop bglapi-engine docker container rm bglapi-engine docker run --rm \ --name bglapi-engine \ - -v $parentdir/config:/config/ \ - -v $parentdir/data/socket/:/var/run/postgresql/ \ - -v $parentdir/app/:/app/ \ + -v "$parentdir/config:/config/" \ + -v "$parentdir/data/socket/:/var/run/postgresql/" \ + -v "$parentdir/app/:/app/" \ --net=host \ -it bglapi-engine diff --git a/postgres/run.sh.template b/postgres/run.sh.template index 048c0d9..d5550ab 100644 --- a/postgres/run.sh.template +++ b/postgres/run.sh.template @@ -4,8 +4,8 @@ docker container stop bglapi-server-postgres docker container rm bglapi-server-postgres docker run --rm \ --name bglapi-server-postgres \ - -v $parentdir/config:/config/ \ - -v $parentdir/data/postgres/:/var/lib/postgresql/data/ \ - -v $parentdir/data/socket/:/var/run/postgresql/ \ - -v $parentdir/config/postgres.conf:/etc/postgres.conf \ - -it bglapi-server-postgres -c config_file=/etc/postgres.conf \ No newline at end of file + -v "$parentdir/config:/config/" \ + -v "$parentdir/data/postgres/:/var/lib/postgresql/data/" \ + -v "$parentdir/data/socket/:/var/run/postgresql/" \ + -v "$parentdir/config/postgres.conf:/etc/postgres.conf" \ + -it bglapi-server-postgres -c config_file=/etc/postgres.conf