Giter VIP home page Giter VIP logo

Comments (4)

daniel-dan1 avatar daniel-dan1 commented on May 25, 2024

Found the issue. Seems the .sh scripts were edited in Windows on this commit and contained the CRLF end of line. I changed it to LF (what linux expects) with Notepad++ and they started working correctly.

Just in case, I attach both .sh corrected scripts. I'll also try to contribute them through my fork.

Thanks!
sh.zip

from docker-wordpress.

TrafeX avatar TrafeX commented on May 25, 2024

Hi @daniel-dan1,

That's a strange issue. But I'm sure all the files in this repo use LF line endings. You can see that;

$ git ls-files --eol
..
i/lf    w/lf    attr/                 	entrypoint.sh

I think something else is causing this. Can you show the exact command you're using to run this container?

from docker-wordpress.

daniel-dan1 avatar daniel-dan1 commented on May 25, 2024

Hi @TrafeX,

You are right. The problem was on my side. My Windows box was using the default git config, so it was converting all eol's from LF to CRLF when cloning/pulling from GitHub.
I configured core.autocrlf=false, did a clean clone, and all files are now end in LF, including the entrypoint script.

git ls-files --eol .. i/lf w/lf attr/ entrypoint.sh

Thanks for your reply and good job with this repo!
Dan.

from docker-wordpress.

TrafeX avatar TrafeX commented on May 25, 2024

Good to hear you could solve it! 👍

from docker-wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.