File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1212
1313# # If you need a custom hook file, create a file with the same name in
1414# # /usr/local/ispconfig/server/conf-custom/scripts/
15+ # #
16+ # # End the file with 'return 124' to signal that this script should not terminate.
1517if [ -e " /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_renew_hook.sh" ] ; then
16- . /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_renew_hook.sh && exit 0 || exit 1;
18+ . /usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_renew_hook.sh
19+ ret=$?
20+ if [ $ret != 124 ]; then exit $ret ; fi
1721fi
1822
1923hostname=$( hostname -f)
@@ -52,4 +56,4 @@ if [ -d "$lelive" ]; then
5256 if [ $( dpkg-query -W -f=' ${Status}' nginx 2> /dev/null | grep -c " ok installed" ) -eq 1 ]; then service nginx restart; fi
5357 if [ $( dpkg-query -W -f=' ${Status}' apache2 2> /dev/null | grep -c " ok installed" ) -eq 1 ]; then service apache2 restart; fi
5458 fi
55- else echo ` /bin/date` " Your Lets Encrypt SSL certs path for your ISPConfig server FQDN is missing.$line " >> /var/log/ispconfig/ispconfig.log; fi
59+ else echo ` /bin/date` " Your Lets Encrypt SSL certs path for your ISPConfig server FQDN is missing.$line " >> /var/log/ispconfig/ispconfig.log; fi
You can’t perform that action at this time.
0 commit comments