Commit 62e90b96 authored by Eric's avatar Eric
Browse files

add some debug infos

parent 0d3c099e
......@@ -3,7 +3,6 @@
# 2017 - Eric Seigne <eric.seigne@abul.org>
# automatic renew let's encrypt certificates
function ldebug()
{
DEBUG=0
......@@ -13,14 +12,16 @@ function ldebug()
}
MYIPS=`ip -f inet -o addr | awk '!/^[0-9]*: ?lo|link\/ether/ {gsub("/", " "); print $4}'`
ldebug "-> mon ip ${MYIP}"
rm -f /etc/dehydrated/domains.txt
FIC="/etc/apache2/reference_soo"
if [ -f /etc/apache2/reference_soo.new ]; then
FIC=/etc/apache2/reference_soo.new
else
FIC=/etc/apache2/reference_soo
FIC="/etc/apache2/reference_soo.new"
fi
rm -f ${FIc}.ok
ldebug "on supprime ${FIC}.ok"
rm -f ${FIC}.ok
for domaine in `cat ${FIC}`
do
......@@ -30,6 +31,7 @@ do
for myip in ${MYIPS}
do
if [ "${TESTDOMAINE}" = "${myip}" ]; then
ldebug "${TESTDOMAINE} est egal a ${myip} on ajoute ${domaine} a ${FIC}.ok..."
echo ${domaine} >> ${FIC}.ok
break
fi
......
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