Commit 046e8a10 authored by David Morley's avatar David Morley

curl it

parent b3ca24f9
......@@ -15,4 +15,4 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
This product includes GeoLite2 data created by MaxMind, available from
<a href="http://www.maxmind.com">http://www.maxmind.com</a>.
\ No newline at end of file
<a href="http://www.maxmind.com">http://www.maxmind.com</a>.
......@@ -46,13 +46,13 @@ if [ "$HOUR" = 23 ] || [ "$@" = "init" ]; then
fi
if [ "$DAY" = 23 ] || [ "$@" = "init" ]; then
printf "%s" "Updating CA..."
if wget -q https://curl.haxx.se/ca/cacert.pem -O ../cacert.pem; then
if curl -Lss https://curl.haxx.se/ca/cacert.pem -o ../cacert.pem; then
echo "$HAPPY"
else
echo "$SAD"
fi
printf "%s" "Updating GeoIP2 DB..."
if wget -qO- http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz | gunzip -c > ../GeoLite2-City.mmdb; then
if funzip <(curl -Lss http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz) > ../GeoLite2-City.mmdb; then
echo "$HAPPY"
else
echo "$SAD"
......
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