mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
script for hooks can not be found #62
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beelbrecht on GitHub (Feb 17, 2016).
Hi,
I'm using this config to specify the path of my hook.sh script:
HOOK="${BASEDIR}/hook.sh"But my BASEDIR starts with
/Volumes/Macintosh HD/UsersThere is a space in the pathname. Why not adding double quotes to the hook variable ${HOOK} in letsencrypt.sh?
My shell script knowledge ist not very well, but this solution works for me...
Kind regards,
Benjamin
@lukas2511 commented on GitHub (Feb 17, 2016):
oh yea, spaces do exist, i always forget.
@K2rool commented on GitHub (Mar 14, 2016):
Hi, this commit cusses hook script not to be loaded ./letsencrypt.sh: line 410: python hooks/cloudflare/hook.py: No such file or directory, i manage to get it working by undoing all the change this commit dose by removed all the double quotes which was added.
@lukas2511 commented on GitHub (Mar 14, 2016):
@K2rool just use
hooks/cloudflare/hook.py, add a shebang to the first line of your script#!/usr/bin/env pythonand make it executable (chmod +x hooks/cloudflare/hook.py).@K2rool commented on GitHub (Mar 14, 2016):
@lukas2511 Thanks that fixed it, i got letsencrypt.sh on a few server i coped the config file from one of my other server which must be running a letsencrypt.sh version before this commit.
Thank for the quick reply and helping me fix my issue
@bviktor commented on GitHub (May 12, 2016):
Unfortunately this does not work for Java where you don't have a shebang.
Any ideas how to solve this, other than creating a passthrough shell script? eval or subshell, maybe?
@bviktor commented on GitHub (May 12, 2016):
The only other thing I can think of ATM is an additional, optional argument, "hook interpreter", that could contain "sh", "python2.7", "java -jar" or whatever. Opinions?
@lukas2511 commented on GitHub (May 13, 2016):
@bviktor I think a passthrough/wrapper script would be better than a new option. It's simple, it doesn't add much weight and it can handle all kind of edgecases.
@bviktor commented on GitHub (May 13, 2016):
Alright.