Currently we have some license issues. We are working on it.

Commit 046e8a10 authored by dmorley's avatar dmorley
Browse files

curl it

parent b3ca24f9
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
This product includes GeoLite2 data created by MaxMind, available from This product includes GeoLite2 data created by MaxMind, available from
<a href="http://www.maxmind.com">http://www.maxmind.com</a>. <a href="http://www.maxmind.com">http://www.maxmind.com</a>.
\ No newline at end of file
...@@ -46,13 +46,13 @@ if [ "$HOUR" = 23 ] || [ "$@" = "init" ]; then ...@@ -46,13 +46,13 @@ if [ "$HOUR" = 23 ] || [ "$@" = "init" ]; then
fi fi
if [ "$DAY" = 23 ] || [ "$@" = "init" ]; then if [ "$DAY" = 23 ] || [ "$@" = "init" ]; then
printf "%s" "Updating CA..." 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" echo "$HAPPY"
else else
echo "$SAD" echo "$SAD"
fi fi
printf "%s" "Updating GeoIP2 DB..." 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" echo "$HAPPY"
else else
echo "$SAD" 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