Code Monkey home page Code Monkey logo

Comments (23)

adnanh avatar adnanh commented on May 2, 2024 93

Can you add #!/bin/sh on top

from webhook.

moorereason avatar moorereason commented on May 2, 2024 6

That's the problem. The first line must be something like this:

#!/bin/sh

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024 5

Voilà now works fine! 😄

image

Always Shebang on top 😄

#!/bin/sh

Thanks a lot guys.

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024 1

Done !
https://github.com/adnanh/webhook/wiki/Home/_compare/aaa832b5ba58f0904fdcba183d1fc8184caafd00?diff=unified

from webhook.

moorereason avatar moorereason commented on May 2, 2024

What OS are you running on? Is redeploy.sh executable (do you have exec permissions)?

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024

I have Fedora 22 x64.
Yes my .sh file has exec permisions. chmod +x redeploy.sh
Also, I created a symbolic link of /home/joseluis/.go/bin/webhook to /usr/bin/webhook

from webhook.

adnanh avatar adnanh commented on May 2, 2024

What happens when you execute redeploy.sh script manually?

from webhook.

adnanh avatar adnanh commented on May 2, 2024

Also, who is the owner of the file? Under which user is webhook running? Can that user access the script?

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024

What happens when you execute redeploy.sh script manually?

Output my echo "Hello" normally.

$ ./redeploy.sh
Hello

Also, who is the owner of the file? Under which user is webhook running? Can that user access the script?

Yes, my user is joseluisthis user was installed Go
and installed webhook to /home/joseluis/.go/bin/webhook
And with this user I created a symbolic link of /home/joseluis/.go/bin/webhook to /usr/bin/webhook
and run webhook webhook -hooks hooks.json -verbose

Or Is it necessary to use root access?

from webhook.

moorereason avatar moorereason commented on May 2, 2024

What are the contents of redeploy.sh?

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024

echo "Hello"

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024

Exists some complete example with .sh and hook.json for testing on my OS?

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024

Can you add #!/bin/sh on top

Ok, I will try this...

from webhook.

adnanh avatar adnanh commented on May 2, 2024

That should solve it, can you please confirm so we can close the issue :-)

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024

@adnanh yeah I will confirm soon.. 👍

from webhook.

adnanh avatar adnanh commented on May 2, 2024

Glad we could help :-) 👍

from webhook.

c33s avatar c33s commented on May 2, 2024

a better error message would be helpful.

... error occurred: fork/exec ... (does your file start with "#!/bin/sh"?)

from webhook.

adnanh avatar adnanh commented on May 2, 2024

Wiki page with common errors and possible fixes would be even better :-) Feel free to contribute!

from webhook.

c33s avatar c33s commented on May 2, 2024

wiki page <<< good error messages :)
if it would be php i would contribute a better error message...

from webhook.

joseluisq avatar joseluisq commented on May 2, 2024

And the history changes: https://github.com/adnanh/webhook/wiki/Home/_history

from webhook.

sourcec0de avatar sourcec0de commented on May 2, 2024

@adnanh I ❤️ u

from webhook.

adnanh avatar adnanh commented on May 2, 2024

:)

from webhook.

nahayoarthur avatar nahayoarthur commented on May 2, 2024

Can you add #!/bin/sh on top

it solved my issue, thanks a lot 👍

from webhook.

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.