Commit 9339f005 authored by remy's avatar remy
Browse files

renaming lists.txt to url_list.txt

parent 8550b457
......@@ -21,7 +21,7 @@ bash check_certs.sh
This script check some URLs (HTTP answers + checksums).
Enter the list of URL to scan in `lists.txt`.
Enter the list of URL to scan in `url_list.txt`.
To check the checksums and get HTTP answers, you need to launch:
......
#!/bin/bash
########################################################################
###### Ce script verifie l'etat des sites web listés dans lists.txt
###### Ce script verifie l'etat des sites web listés dans url_list.txt
###### en recuperant la page d'index et leur statut par curl
###### les pages d'index permettent de produire des checksums
###### qui sont comparees a une version historique sha256sum.txt.orig
######
######
######
###### En cas de rajout de nouveau site dans le fichier lists.txt
###### En cas de rajout de nouveau site dans le fichier url_list.txt
###### il faut donc de nouveau lancer le checks.sh avec l'option
###### "init"
######
......@@ -60,7 +60,7 @@ usage="$0 [compare|init|check|clean|--help]\n\n
If you run this code with the check option, it will compare the checksums to the previous one and build the status.log file built from the server HTTP answers.\n
Finally, it will export those results to a checksum.json file and a status.json file.\n
\n\n
If you add a new website to lists.txt, use the init option
If you add a new website to url_list.txt, use the init option
\n\n
If you want to show differences about what have changed, use the compare option.
"
......@@ -172,10 +172,10 @@ do
echo -n $website" " >> status.log && $CURL $CURL_OPTS $website|head -1 >> status.log
$WGET -O "${name}.index.html" $website 2>/dev/null
fi
done < ../lists.txt
done < ../url_list.txt
/usr/bin/dos2unix status.log 2>/dev/null
remove_dyn_elems ../lists.txt
remove_dyn_elems ../url_list.txt
if [ -z ${FIRST} ]; then
......@@ -221,7 +221,7 @@ if [ -z ${FIRST} ]; then
else
$AWK -f ../check_sha256.awk -v url=$url -v sitename=${name} -v total=$total sha256sum.txt*
fi
done < ../lists.txt|sort >> checksums.json
done < ../url_list.txt|sort >> checksums.json
echo "}" >> checksums.json
else
$SHA256SUM *.html > sha256sum.txt.orig
......
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