Skip to content

Commit

Permalink
Fix SSL errors
Browse files Browse the repository at this point in the history
  • Loading branch information
phl0 committed May 15, 2018
1 parent fd8e2a1 commit fc40553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linux/DMRIDUpdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
DMRIDPATH=/path/to/DMR/ID/file
DMRIDFILE=${DMRIDPATH}/DMRIds.dat

# DMR-MARC.net has discontinued real time access. Now they offer a nightly dump instead.
DATABASEURL='https://radioid.net/static/users.csv'
# DMR IDs now served by RadioID.net
DATABASEURL='https://www.radioid.net/static/users.csv'

#
# How many DMR ID files do you want backed up (0 = do not keep backups)
Expand Down Expand Up @@ -95,7 +95,7 @@ then
fi

# Generate new file
curl -k ${DATABASEURL} 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s\t%s\t%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > ${DMRIDPATH}/DMRIds.tmp
curl ${DATABASEURL} 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s\t%s\t%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > ${DMRIDPATH}/DMRIds.tmp
NUMOFLINES=$(wc -l ${DMRIDPATH}/DMRIds.tmp | awk '{print $1}')
if [ $NUMOFLINES -gt 1 ]
then
Expand Down

0 comments on commit fc40553

Please sign in to comment.