Skip to content

Commit c4e1637

Browse files
author
Marius Burkard
committed
- removed unneeded line from hook file
1 parent 225260f commit c4e1637

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/scripts/letsencrypt_renew_hook.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ if [ -e "/usr/local/ispconfig/server/conf-custom/scripts/letsencrypt_renew_hook.
1717
fi
1818

1919
hostname=$(hostname -f)
20-
acme=$(which /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh)
21-
if [ -e "/usr/local/ispconfig/server/scripts/${hostname}" ] ; then
20+
if [ -d "/usr/local/ispconfig/server/scripts/${hostname}" ] ; then
2221
lelive="/usr/local/ispconfig/server/scripts/${hostname}" ;
23-
elif [ -e "/root/.acme.sh/${hostname}" ] ; then
22+
elif [ -d "/root/.acme.sh/${hostname}" ] ; then
2423
lelive="/root/.acme.sh/${hostname}" ;
2524
else
2625
lelive="/etc/letsencrypt/live/${hostname}" ;

0 commit comments

Comments
 (0)