-
Notifications
You must be signed in to change notification settings - Fork 483
postgis.sh: 9 Bad substitution #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
build:
./docker-postgis-master/11-2.5 postgis_1 | done
postgis_1 | server started
postgis_1 | CREATE DATABASE
postgis_1 |
postgis_1 |
postgis_1 | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/postgis.sh
postgis_1 | /docker-entrypoint-initdb.d/postgis.sh: 9: /docker-entrypoint-initdb.d/postgis.sh: Bad substitution Same error on my side while building from repo. image: mdillon/postgis:11 No errors, runs fine when using image. @loic-lopez what OS do you run and how you build image? |
Fix: chmod -x initdb-postgis.sh
chmod -x update-postgis.sh |
It looks like the repository got checked out somewhere that didn't preserve Unix permissions, so the executable bit was lost. It's there in the Git repository. |
Sorry, I got it backwards. The I think you may be running into this if you're on Windows and bind mounting in the source code for this image: docker-library/postgres#452 (comment) |
I'm getting this same error too. I'm building on Windows. IDK what to do. Is there a fix that's not Windows-specific somehow? |
Take a look at line ending (different for Unix different for Windows). I had some problems with that. |
Hello, Change the shell and ths srcipt work : Change But after, i have another error |
Hello, when the database system start for the first time it displays:
So when i tried to create a table with a position datatype:
The text was updated successfully, but these errors were encountered: