Commit 454754d6 authored by Marius Burkard's avatar Marius Burkard
Browse files

- allow custom scripts for hooks

parent 234c2fea
Pipeline #4775 passed with stage
in 10 seconds
......@@ -10,15 +10,11 @@
# Description: To force close http port 80 if it is by default closed, to be used by letsencrypt client standlone command
### END INIT INFO
## WE DISABLED THIS DUE TO ISSUES. IF YOU WANT TO USE IT, COPY THIS FILE TO
## If you need a custom hook file, create a file with the same name in
## /usr/local/ispconfig/server/conf-custom/scripts/
## AND REMOVE THIS CODE PART
## if [[ -e "/usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_post_hook.sh" ]] ; then
## . /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_post_hook.sh ;
## fi
## exit 0;
## END OF CODE PART
if [[ -e "/usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_post_hook.sh" ]] ; then
. /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_post_hook.sh && exit 0 || exit 1;
fi
# You can add support to other firewall
......
......@@ -10,14 +10,11 @@
# Description: To force open http port 80 to be used by letsencrypt client standlone command
### END INIT INFO
## WE DISABLED THIS DUE TO ISSUES. IF YOU WANT TO USE IT, COPY THIS FILE TO
## If you need a custom hook file, create a file with the same name in
## /usr/local/ispconfig/server/conf-custom/scripts/
## AND REMOVE THIS CODE PART
## if [[ -e "/usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_pre_hook.sh" ]] ; then
## . /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_pre_hook.sh ;
## fi
## exit 0;
## END OF CODE PART
if [[ -e "/usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_pre_hook.sh" ]] ; then
. /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_pre_hook.sh && exit 0 || exit 1 ;
fi
# You can add support to other firewall
......
......@@ -10,14 +10,11 @@
# Description: Taken from LE4ISPC code. To be used to update ispserver.pem automatically after ISPConfig LE SSL certs are renewed and to reload / restart important ISPConfig server services
### END INIT INFO
## WE DISABLED THIS DUE TO ISSUES. IF YOU WANT TO USE IT, COPY THIS FILE TO
## If you need a custom hook file, create a file with the same name in
## /usr/local/ispconfig/server/conf-custom/scripts/
## AND REMOVE THIS CODE PART
## if [[ -e "/usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_renew_hook.sh" ]] ; then
## . /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_renew_hook.sh ;
## fi
## exit 0;
## END OF CODE PART
if [[ -e "/usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_renew_hook.sh" ]] ; then
. /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_renew_hook.sh && exit 0 || exit 1;
fi
lelive=/etc/letsencrypt/live/$(hostname -f); if [ -d "$lelive" ]; then
cd /usr/local/ispconfig/interface/ssl; ibak=ispserver.*.bak; ipem=ispserver.pem; icrt=ispserver.crt; ikey=ispserver.key
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment