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