dnsdiag.org/update_webpage.sh

27 lines
505 B
Bash
Raw Permalink Normal View History

2016-05-07 16:38:45 +04:30
#!/bin/sh
if [ ! -d dnsdiag ]; then
git clone https://github.com/farrokhi/dnsdiag.git
fi
cd dnsdiag
git pull
cd -
cat << HEADER > index.html
<!DOCTYPE html>
<html>
2016-05-08 18:57:34 +04:30
<head>
2016-05-07 16:38:45 +04:30
<title>DNSDiag</title>
2016-05-08 18:57:34 +04:30
<meta name="Keywords" content="dns, dnseval, dnstools, dnsping, dnstraceroute, dnsdiag, hijacking, python, isp" />
</head>
2016-05-07 16:38:45 +04:30
<xmp theme="cerulean" style="display:none;">
HEADER
cat dnsdiag/README.md >> index.html
cat << FOOTER >> index.html
</xmp>
<script src="/v/0.2/strapdown.js"></script>
</html>
FOOTER