Add "www." to prevent SSL certificate errors

This commit is contained in:
phl0 2018-05-15 21:46:37 +02:00
parent 363fac1718
commit fb9c6c8a5d
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
echo Downloading DMR-IDs from MARC-database echo Downloading DMR-IDs from RadioID database
curl 'https://radioid.net/static/users.csv' 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s;%s;%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > dmrids.dat curl 'https://www.radioid.net/static/users.csv' 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s;%s;%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > dmrids.dat
echo Removing IDs from local database echo Removing IDs from local database
echo -e 'delete from callsign where 1;' | sqlite3 callsigns.db echo -e 'delete from callsign where 1;' | sqlite3 callsigns.db