Comments (23)
Can you add #!/bin/sh
on top
from webhook.
That's the problem. The first line must be something like this:
#!/bin/sh
from webhook.
Voilà now works fine! 😄
Always Shebang on top 😄
#!/bin/sh
Thanks a lot guys.
from webhook.
from webhook.
What OS are you running on? Is redeploy.sh
executable (do you have exec permissions)?
from webhook.
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.
What happens when you execute redeploy.sh script manually?
from webhook.
Also, who is the owner of the file? Under which user is webhook running? Can that user access the script?
from webhook.
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 joseluis
this 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.
What are the contents of redeploy.sh
?
from webhook.
echo "Hello"
from webhook.
Exists some complete example with .sh
and hook.json
for testing on my OS?
from webhook.
Can you add #!/bin/sh on top
Ok, I will try this...
from webhook.
That should solve it, can you please confirm so we can close the issue :-)
from webhook.
@adnanh yeah I will confirm soon.. 👍
from webhook.
Glad we could help :-) 👍
from webhook.
a better error message would be helpful.
... error occurred: fork/exec ... (does your file start with "#!/bin/sh"?)
from webhook.
Wiki page with common errors and possible fixes would be even better :-) Feel free to contribute!
from webhook.
wiki page <<< good error messages :)
if it would be php i would contribute a better error message...
from webhook.
And the history changes: https://github.com/adnanh/webhook/wiki/Home/_history
from webhook.
@adnanh I ❤️ u
from webhook.
:)
from webhook.
Can you add
#!/bin/sh
on top
it solved my issue, thanks a lot 👍
from webhook.
Related Issues (20)
- Broadcasting Slack Slash Command's Response HOT 1
- Header evaluation is broken HOT 4
- Step-by-step tutorial for a 'Hello world'
- Vulnerabilities of dependency "gopkg.in/yaml.v2"
- webhook hook not running bash script HOT 6
- Bitbucket now supports webhook secrets 🥳 HOT 1
- I found that I can't use dot-notation to contain all sub-objects in my json
- I need to parse url for addr:port HOT 1
- Update `go` installation
- Ubuntu Webhooks is not reading the correct RVM ruby installed HOT 2
- Custom logging
- Webhook id is not being served in URL HOT 2
- how to set shell $PATH HOT 4
- Weird Cert issue when calling webhook from shell HOT 1
- pass-file-to-command as optional HOT 1
- Add a (unique) folder with images for dynamic responses HOT 7
- Question - How long does the webhook service run
- Add hook property to control command output logging
- New WebHook, Docker, Env Support, Clean codebase 🎉
- amd64 does not works pre compiled? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webhook.