Fix the letsencrypt hook, it looked for a file that does not exist.
This commit is contained in:
parent
5c550d3a7f
commit
d2c923939e
|
@ -12,17 +12,12 @@ DATE=$( date )
|
|||
[ ! -d $LE_LOG_DIR ] && mkdir $LE_LOG_DIR
|
||||
echo "$DATE" >> $LE_LOG_DIR/pgpool2.log
|
||||
|
||||
if [ -f /etc/default/letsencrypt ] ; then
|
||||
. /etc/default/letsencrypt
|
||||
else
|
||||
echo "No letsencrypt default file" >> $LE_LOG_DIR/pgpool2.log
|
||||
fi
|
||||
|
||||
logger "acme-pgpool-hook: Check if the certificate has been renewed"
|
||||
cmp ${LE_CERTS_DIR}/privkey ${PGPOOL2_KEYFILE}
|
||||
RETVAL=$?
|
||||
if [ $RETVAL -eq 0 ] ; then
|
||||
logger "acme-pgpool-hook: No new cerficate. Doing nothing"
|
||||
echo "acme-pgpool-hook: No new cerficate. Doing nothing" >> $LE_LOG_DIR/pgpool2.log
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue